SHAP-style explainability with enhanced methods for sequential and tabular models
Project description
Overview
SHAP-Enhanced is a research-focused Python library providing a unified, extensible platform for developing, benchmarking, and analyzing advanced SHAP (SHapley Additive exPlanations) variants for tabular, sequential, and sparse data.
- Implements state-of-the-art and experimental SHAP explainers with a clean, consistent interface.
- Supports time series, LSTM, attention models, sparse (binary/one-hot) data, hierarchical and multi-baseline explainers, and more.
- Built for scientific benchmarking, model debugging, and real-world explainability studies.
This framework is created following PEP8 standards, Sphinx documentation format, and is released under the GNU Affero General Public License v3.0.
Installation
You can install the package locally:
git clone https://github.com/niyangbai/enhanced_shap.git
cd shap-enhanced
pip install -r requirements.txt
Contribution
We welcome contributions to SHAP-Enhanced! To contribute, please follow these steps:
- Fork the Repository: Click the "Fork" button on the GitHub repository page.
- Clone Your Fork: Clone your forked repository to your local machine:
git clone https://github.com/niyangbai/enhanced_shap.git cd enhanced_shap - Create a Branch: Create a new branch for your feature or bug fix:
git checkout -b feature-or-bugfix-name - Make Changes: Implement your changes, ensuring they follow PEP8 standards and include proper Sphinx-style docstrings.
- Write Tests: Add or update unit tests in the
tests/directory to cover your changes. - Run Tests: Ensure all tests pass before submitting your changes:
pytest - Commit Changes: Commit your changes with a descriptive message:
git add . git commit -m "Description of your changes" - Push Changes: Push your branch to your forked repository:
git push origin feature-or-bugfix-name - Submit a Pull Request: Open a pull request to the main repository, describing your changes in detail.
General Guidelines:
- Follow the PEP8 coding style.
- Document all public methods, classes, and modules using Sphinx-style docstrings.
- Ensure your code is properly typed and includes type hints.
- Write clear and concise commit messages.
- Be respectful and collaborative in code reviews.
License
This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).
See the LICENSE file for details.
Note: Any modified versions must also be made publicly available under the same license if deployed.
About
- Master Thesis — Enhanced SHAP for Sequential and Sparse Data in Predictive Process Monitoring
- University: Friedrich-Alexander-Universität Erlangen-Nürnberg
Contact
For inquiries, please reach out via GitHub Issues.
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
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
File details
Details for the file shap_enhanced-0.0.1a2.tar.gz.
File metadata
- Download URL: shap_enhanced-0.0.1a2.tar.gz
- Upload date:
- Size: 73.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5ddb27cc6974789f07471c39335bd552b1ff342c009dc83314c84e5f8ccb384
|
|
| MD5 |
32d94377e7db5d5e7c972adc0e0c5852
|
|
| BLAKE2b-256 |
bcf06198df1a8cb67614953e124acb5415faba640c21218f7f84f5f777f84c8d
|
File details
Details for the file shap_enhanced-0.0.1a2-py3-none-any.whl.
File metadata
- Download URL: shap_enhanced-0.0.1a2-py3-none-any.whl
- Upload date:
- Size: 78.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1456fb962510785323c07cc85aef164418a6c1204a35eadef60cfbd46a421075
|
|
| MD5 |
3e8062cffcb1fcfe10ebed8403fdbf8f
|
|
| BLAKE2b-256 |
33ce7e0aaba6ec38b2fdb07bae0377d4977b1c2c9ff94d42e4105234ffa4a952
|