Skip to main content

SHAP-style explainability with enhanced methods for sequential and tabular models

Project description

SHAP-Enhanced: Advanced Explainability Toolkit

License: AGPL-3.0 Python Version C++ Code Git

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:

  1. Fork the Repository: Click the "Fork" button on the GitHub repository page.
  2. Clone Your Fork: Clone your forked repository to your local machine:
    git clone https://github.com/niyangbai/enhanced_shap.git
    cd enhanced_shap
    
  3. Create a Branch: Create a new branch for your feature or bug fix:
    git checkout -b feature-or-bugfix-name
    
  4. Make Changes: Implement your changes, ensuring they follow PEP8 standards and include proper Sphinx-style docstrings.
  5. Write Tests: Add or update unit tests in the tests/ directory to cover your changes.
  6. Run Tests: Ensure all tests pass before submitting your changes:
    pytest
    
  7. Commit Changes: Commit your changes with a descriptive message:
    git add .
    git commit -m "Description of your changes"
    
  8. Push Changes: Push your branch to your forked repository:
    git push origin feature-or-bugfix-name
    
  9. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shap_enhanced-0.0.1a2.tar.gz (73.6 kB view details)

Uploaded Source

Built Distribution

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

shap_enhanced-0.0.1a2-py3-none-any.whl (78.3 kB view details)

Uploaded Python 3

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

Hashes for shap_enhanced-0.0.1a2.tar.gz
Algorithm Hash digest
SHA256 d5ddb27cc6974789f07471c39335bd552b1ff342c009dc83314c84e5f8ccb384
MD5 32d94377e7db5d5e7c972adc0e0c5852
BLAKE2b-256 bcf06198df1a8cb67614953e124acb5415faba640c21218f7f84f5f777f84c8d

See more details on using hashes here.

File details

Details for the file shap_enhanced-0.0.1a2-py3-none-any.whl.

File metadata

File hashes

Hashes for shap_enhanced-0.0.1a2-py3-none-any.whl
Algorithm Hash digest
SHA256 1456fb962510785323c07cc85aef164418a6c1204a35eadef60cfbd46a421075
MD5 3e8062cffcb1fcfe10ebed8403fdbf8f
BLAKE2b-256 33ce7e0aaba6ec38b2fdb07bae0377d4977b1c2c9ff94d42e4105234ffa4a952

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