#3030th of 433 in ML frameworks and libraries
shap
Python library that explains ML model predictions with Shapley values
Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts shap on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.shap is on your watch list. Its new releases and problems show there.
- Stars
- 25.9k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Oct 2026
- Language
- Jupyter Notebook
25,014 on 25 Mar 202625,900 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
SHAP computes per-feature attributions for model predictions using Shapley values. It has model-specific explainers (Tree, Deep, Gradient, Linear) and a model-agnostic Kernel explainer, plus plots such as waterfall, force, beeswarm, scatter and text. Tree SHAP has C++ implementations for XGBoost, LightGBM, CatBoost, scikit-learn and pyspark; transformers pipelines are supported for NLP.
Who it is for: Data scientists and ML engineers who need to interpret model predictions
Strengths
- Exact, fast Tree SHAP in C++ for XGBoost, LightGBM, CatBoost, scikit-learn, pyspark
- KernelExplainer works on any model that exposes a prediction function
- Built-in plots: waterfall, force, beeswarm, scatter, bar, text, image
- Optional GPU Tree SHAP via the separate shap-cuda package
Weaknesses
- KernelExplainer is slower than the model-specific explainers
- DeepExplainer supports TensorFlow/Keras; PyTorch support is described as preliminary
- Some README examples use older Keras APIs such as K.get_session
- Explains models but does not train, serve or monitor them
What it needs
- GPU optional
- Needs XGBoost, LightGBM, CatBoost, scikit-learn, TensorFlow/Keras, PyTorch, transformers
- Models: XGBoost, LightGBM, CatBoost, scikit-learn, pyspark
What changed
- v0.53.0 ↗ (opens in a new tab)Breaking
“Match KernelExplainer DataFrame columns to the background by name. Duplicated column names now raise an error, but worked previously. By @Atishyy27 in https://github.com/shap/shap/pull/5164.”
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in ML frameworks and libraries
See all 433| Rank | Project | Score |
|---|---|---|
| #28 | tabpfnPretrained transformer for tabular classification and regression, no per-dataset training | 84 out of 100 |
| #29 | xgboostGradient boosted decision tree library for tabular machine learning | 83 out of 100 |
| #31 | sentence-transformersPython library for text embeddings, rerankers, and sparse and ColBERT-style models | 83 out of 100 |
| #32 | pysyftPython library for running data-owner-approved jobs on private data | 83 out of 100 |
| #33 | accelerateThin PyTorch wrapper that runs your training loop on CPU, GPU, TPU or multi-node | 83 out of 100 |