API reference#
The public API of Shapash. Each entry links to its full documentation.
Tabular data#
The main class of the Shapash library, to make machine learning model results understandable. |
|
|
SmartPlotter is a Bridge pattern decoupling plotting functions from SmartExplainer. |
Compare the contributions computed by several explainability methods. |
|
The SmartPredictor class is an object lighter than SmartExplainer Object with additionnal consistency checks. |
|
load_smartpredictor allows Shapash users to load SmartPredictor Object already saved into a pickle. |
|
|
Load one of the sample datasets supported by Shapash. |
Report and standalone plots#
|
Report templates list. |
|
Export a report template YAML file to the given output path. |
|
Base mixin providing built-in and user-extensible smart report blocks. |
|
Wrap block output in a standard report section container. |
Plot the univariate distribution of a continuous or categorical feature in the dataset. |
|
Plot a correlation matrix heatmap. |
|
Creates an interactive confusion matrix using Plotly. |
|
Generate feature importance plots using different modes such as global, global-local, or cumulative contributions. |
Backends#
|
|
|
The Shap Backend. |
|
The Lime Backend. |
Text data (NLP)#
Minimal explainer for text classification — token-level contributions. |
|
Immutable result of |
|
|
Plots over one |
|
Minimal Dash webapp driven by an |
|
Full-capability adapter over a raw |
|
Prediction-only adapter over a HuggingFace |
|
SHAP backend for text classification models (HuggingFace pipelines, etc.). |
|
LIME backend for text classification models. |
|
Layer Integrated Gradients backend for text classification models. |