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.1
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.1.tar.gz | 21.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wrapshap-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 54.5 kB
Release files / wrapshap-0.1.1.tar.gz
| Download URL | wrapshap-0.1.1.tar.gz |
|---|---|
| Size | 21.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f56b324ce15c4e278e5dcfef8593c53a82dc469f8389a817a3c3ca588e0eb96d
|
|
BLAKE2b-256 checksum How to use checksums |
3e9821e4a317794ab461ce876838af9857302bb9650ac56041790d69c847edb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / wrapshap-0.1.1-py3-none-any.whl
| Download URL | wrapshap-0.1.1-py3-none-any.whl |
|---|---|
| Size | 32.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ecb37896880efd7de285fca9d71aac234a59aae957224fa3226cf1e144d9c9e
|
|
BLAKE2b-256 checksum How to use checksums |
2c0840f549b025dc3ec6123f36b102f70475e151a37785b47b1eaca397209f51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for wrapshap 0.1.1
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.