Looking for usage documentation? Check out Interpretability.
Installation
shap:
Reference topics
Choose a topic to see its functions, parameters, and return types. Related helpers and result classes appear together on each page.Shapley explainers
Create imputation-based, infinity-masking, or remove-and-recontextualize explainers, and prepare their results for SHAP plots.
Partial dependence
Plot partial dependence and individual conditional expectation.
Feature selection
Select features with cross-validation and inspect
FeatureSelectionResult.Decoder readout
Inspect attention weights over training rows, aggregate class votes, and plot their contributions.