Skip to main content

A Python package for the SHAPBoost feature selection algorithm

Project description

SHAPBoost

Python implementation of SHAPBoost. See the paper for details.

Usage

pip install shapboost

Example

from shapboost import SHAPBoostRegressor

clf = SHAPBoostRegressor()
clf.fit(X, y)
print(clf.selected_subset_)

For a more detailed example, see the regression example.

Feature selection methods

SHAPBoost is available for regression, and survival problems.

  • Regression supports the mae, mse, and r2 objectives through the SHAPBoostRegressor-class and can be optimized through adaptive boosting.
  • Survival supports the c_index objective through the SHAPBoostRegressor-class and can be optimized through adaptive boosting.

Important notes

  • The estimator hyperparameter sets the estimators used for the SISO- and MISO steps, and for the updating of the sample weights (or the boosting), the first estimator is used. Thus, this first estimator needs to be a tree model that supports the sample_weight parameter.

Illustration of SHAPBoost

Figure 1

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

shapboost-1.0.0.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shapboost-1.0.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file shapboost-1.0.0.tar.gz.

File metadata

  • Download URL: shapboost-1.0.0.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for shapboost-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f4190ad6f406f6486bd3f86626859306df705070fa4964af312eb32fb3cc04d6
MD5 99814ac921cb6d9669b26d3b91761fd9
BLAKE2b-256 505a68e18fc2ac1dca741850a1d36b14b70db71dcf1f84547d767dd422da5ae7

See more details on using hashes here.

File details

Details for the file shapboost-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: shapboost-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for shapboost-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c14d625d7fb9e98780a461ba599c5b7e82f72ea90382e6a2418a900b3ed8f6ab
MD5 11b0119851a3afa43117fc7d4b53fa48
BLAKE2b-256 a17900e6cdabe272799dceb70b11536f9687b6adeedd166cb8dba122fa10a55d

See more details on using hashes here.

Supported by

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