Toolkit Explainability Lab

Model Explainability Lab

Use SHAP and LIME to understand how models make predictions.

Input Text

LIME — local surrogate

The model is treated as a black box. Words are deleted at random, the model is re-queried on each variant, and a weighted linear model is fitted to those answers. These colours are that surrogate's coefficients: green pushes positive, red pushes negative.

Compare with the SHAP panel. LIME samples; SHAP here is computed analytically from the model's structure. Where they disagree, that disagreement is information — it usually means the model is not locally linear.

SHAP Feature Importance

Aspect-Based Sentiment

Counterfactual Explanations

What minimal changes would flip the prediction?

Try: