What problem does it solve?
SHAP helps you understand why a machine learning model produced a particular prediction by attributing the output to individual input features.
Core Features & Use Cases
- Feature importance & prediction explanations: Compute SHAP values to quantify each feature’s contribution relative to a baseline (expected output).
- Visualization for global and local understanding: Generate interpretability plots such as beeswarm, bar, waterfall, scatter, force, and heatmap.
- Debugging and validation: Diagnose unexpected behavior, investigate errors, and analyze potential bias or fairness issues across groups.
- Model-agnostic workflow: Use the right explainer for tree-based models, deep learning, linear models, and black-box models.
Quick Start
Use SHAP to explain which features most influenced a prediction by running a SHAP explainer, computing SHAP values for your dataset, and producing a beeswarm plot for global importance.