This package allows you to perform SHAP-based feature selection and exploration for high-dimensional data, with both CPU and GPU support.
How to install Wrapshap
In order to install the CPU implementation of Wrapshap, simply run:
pip install wrapshap
If you can afford it, the GPU implementation is much faster and comes with additional methods. To install it instead, please run:
pip install "wrapshap[gpu]"
You should now be able to import wrapshap utilities.
Warning: If you are encountering import issues, please try using Python version 3.9
For the CPU implementation:
from wrapshap import Wrapshap
or for the already wrapped models:
from wrapshap.already_wrapped import WrappedBinaryClassifierXGB, WrappedRegressorXGB
For the GPU implementation:
from wrapshap.gpu_implementation import WrapshapGPU
or for the already wrapped models:
from wrapshap.gpu_implementation.already_wrapped_gpu import WrappedRegressorXGB_GPU, WrappedBinaryClassifierXGB_GPU
For more details about how to use the package, please head over to our GitHub repository for example notebooks.
Metadata
Release files for wrapshap 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| wrapshap-0.1.2.tar.gz | 28.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wrapshap-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 66.3 kB
Release files / wrapshap-0.1.2.tar.gz
| Download URL | wrapshap-0.1.2.tar.gz |
|---|---|
| Size | 28.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c02030ef3177071ff0e2ed49484071913c7bf4f68c8ee3e97a07921402ec3f1
|
|
BLAKE2b-256 checksum How to use checksums |
9fff24ff445fb9c67b05d0ce1cebe5388abc34dbda079daa5204607f92922d66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.7
|
Release files / wrapshap-0.1.2-py3-none-any.whl
| Download URL | wrapshap-0.1.2-py3-none-any.whl |
|---|---|
| Size | 38.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
beee4ebcb1076fd578218e030b0bc09c8a288977261cd56b728d1d6898936828
|
|
BLAKE2b-256 checksum How to use checksums |
0a2a3ba253c03a361a3d0dc061b9a347e137313391761be842de8a0e8953873f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.7
|
Security for wrapshap 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.