Skip to main content

Iterative feature selection method using SHAP values

Project description

IterSHAP: Iterative feature selection using SHAP values

Author: Frank van Mourik, University of Twente

Installation

Install via pip using: pip install itershap (requires Python version >=3.10,<3.11).

Usage

from itershap import IterSHAP

X, y = get_data() # Replace with data location

fs = IterSHAP() # Create a IterSHAP feature selection object
fs.fit(X, y) # Execute IterSHAP on input data
X_transformed = fs.transform(X) # Only keep the via IterSHAP selected features

Benefits

  • Performs well on small high-dimensional datasets
  • Guarantees to return a feature subset
  • Model-agnostic (limited by shap supported models)
  • Validated on synthesised data
  • Benchmarked on DEAP dataset

License

Available under the MIT license, which can be found here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

itershap-0.1.1.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

itershap-0.1.1-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page