A local surrogate method explains one prediction by fitting an interpretable model near the example of interest. LIME uses a linear model to approximate a black-box model’s behavior in that neighborhood, rather than imitating the black box everywhere. section 9.4.1
LIME builds the explanation procedurally:
- Start with the example whose prediction needs explanation. section 9.4.1
- Generate surrogate training examples by perturbing features around that example. section 9.6
- Fit a linear surrogate using a weighted mean-squared-error loss that balances fidelity with interpretability. section 9.4.1
Explaining a subscription prediction
A LIME explainer can be configured for an XGBoost subscription classifier with feature names and categorical-feature metadata. For a true-positive test example, features supporting subscription appear on the positive side of the explanation, while features opposing it appear on the negative side.
