The fastest way to pick an explainable AI library is to answer one question first: are you trying to explain a model you already have, or build a model that explains itself? LIME and SHAP are model-agnostic explainers that probe an existing blackbox system from the outside. InterpretML, by contrast, is a toolkit that lets you train inherently interpretable "glassbox" models and also explain blackbox systems, including via LIME and SHAP techniques. Your answer to that question, plus your need for local versus global explanations, largely determines the right choice.
Understanding XAI: Blackbox vs. Glassbox Strategies
Explainable AI splits into two fundamental strategies. The first treats the model as a blackbox: you keep your existing classifier or regressor untouched and run a separate explanation method alongside it. The second builds interpretability into the model itself, training a glassbox model whose behavior a person can inspect directly.
The InterpretML project, hosted on GitHub, frames this dual capability explicitly: with the package, "you can train interpretable glassbox models and explain blackbox systems," and it supports understanding either a model's global behavior or "the reasons behind individual predictions." LIME and SHAP, the two most widely used model-agnostic tools according to the XAI frameworks directory maintained by Peter India, sit firmly in the first camp. They answer the question "which features drove this prediction?" without ever looking inside the model's internals.
LIME: Local Explanations for Any Model
LIME (Local Interpretable Model-agnostic Explanations) works, as its name states, by "explaining predictions of any machine learning classifier by learning a locally faithful interpretable model around each prediction," in the words of the same directory. In practice, it perturbs the input around a single instance, watches how the model's predictions change, and fits a sparse linear model to that local behavior.
The payoff is speed and scope. Because LIME only approximates the model in the vicinity of one prediction rather than evaluating every feature combination, it runs quickly even against models it was never designed for. Writing for Domino in 2018, Josh Poduska made the trade-off plain: "Simply put, LIME is fast, while Shapley values take a long time to compute."
The limitations mirror the strengths. LIME is local by construction—it tells you why one prediction came out the way it did, not what the model believes in general. Its linear approximations can also miss behavior the full model exhibits elsewhere. And there is a maintenance caveat: the Peter India directory, which checked GitHub default-branch activity in October 2026, records LIME's last commit as July 2021 and advises checking a project's activity "before relying on it."





