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, andr2objectives through theSHAPBoostRegressor-class and can be optimized throughadaptiveboosting. - Survival supports the
c_indexobjective through theSHAPBoostRegressor-class and can be optimized throughadaptiveboosting.
Important notes
- The
estimatorhyperparameter 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 thesample_weightparameter.
Illustration of SHAPBoost
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
shapboost-1.0.0-py3-none-any.whl
(12.2 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4190ad6f406f6486bd3f86626859306df705070fa4964af312eb32fb3cc04d6
|
|
| MD5 |
99814ac921cb6d9669b26d3b91761fd9
|
|
| BLAKE2b-256 |
505a68e18fc2ac1dca741850a1d36b14b70db71dcf1f84547d767dd422da5ae7
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c14d625d7fb9e98780a461ba599c5b7e82f72ea90382e6a2418a900b3ed8f6ab
|
|
| MD5 |
11b0119851a3afa43117fc7d4b53fa48
|
|
| BLAKE2b-256 |
a17900e6cdabe272799dceb70b11536f9687b6adeedd166cb8dba122fa10a55d
|