shap and Shapley_regressions

SHAP is a widely-adopted production library for model-agnostic feature attribution via Shapley values, while Shapley_regressions is a specialized academic tool for conducting statistical inference on Shapley-based explanations—making them complements that address different stages of the explainability workflow.

shap
92
Verified
Shapley_regressions
42
Emerging
Maintenance 20/25
Adoption 25/25
Maturity 25/25
Community 22/25
Maintenance 0/25
Adoption 8/25
Maturity 16/25
Community 18/25
Stars: 25,115
Forks: 3,481
Downloads: 14,461,405
Commits (30d): 17
Language: Jupyter Notebook
License: MIT
Stars: 44
Forks: 14
Downloads:
Commits (30d): 0
Language: Python
License:
No risk flags
Stale 6m No Package No Dependents

About shap

shap/shap

A game theoretic approach to explain the output of any machine learning model.

Based on the README, here's a technical summary: Implements fast exact algorithms for tree ensemble models (XGBoost, LightGBM, CatBoost, scikit-learn, PySpark) via optimized C++ backends, alongside approximation methods for deep learning (DeepExplainer leveraging DeepLIFT) and NLP transformers using coalitional game rules. Provides multiple visualization outputs—waterfall plots, force plots, dependence scatter plots, and beeswarm distributions—to show feature contributions at instance and global levels. Integrates directly with popular ML frameworks and Hugging Face transformers, supporting both tabular and text-based model explanations.

About Shapley_regressions

bank-of-england/Shapley_regressions

Statistical inference on machine learning or general non-parametric models

Scores updated daily from GitHub, PyPI, and npm data. How scores work