0
$\begingroup$

I'm playing with LIME to explain the prediction of a machine learning model.

LIME trains a (locally weighted) linear surrogate model around a point of interest. The weights of that surrogate model are the feature importances of your model's prediction at that point.

However, it's not clear to me how to interpret the intercept term. It's the "base" prediction if all features are zero, which seems meaningless.

(Compare this to SHAP, where the "base" value is the average prediction across the training set.)

So, does it make sense to run LIME without using an intercept term? This way, the feature importances will directly sum up to the prediction.

If not, which I suspect, how do I interpret the intercept term?

$\endgroup$
5
  • $\begingroup$ Hey! I am also looking into ways of how to understand the intercept in LIME. My intuition/understanding is (by looking at many explanations of many different models), that the intercept shows how much cannot be explained by feature weights. Does that make sense? Did you find another interpretation of the intercept term? $\endgroup$ Apr 19, 2021 at 11:04
  • $\begingroup$ oh, and another remark: the feature weights (no matter with or without intercept) do not have to sum up to the prediction. $\endgroup$ Apr 19, 2021 at 13:50
  • $\begingroup$ @TheGreat the link to your question doesn't work anymore! what solution are you looking for? this post addresses several issues i think. $\endgroup$ Feb 9, 2022 at 15:36
  • $\begingroup$ @Verene - You can refer this one datascience.stackexchange.com/questions/107928/… $\endgroup$
    – The Great
    Feb 10, 2022 at 3:21
  • $\begingroup$ I have placed a bounty on my post. Hope this can interest you. I would be grateful if you can help me with the above post of intercept $\endgroup$
    – The Great
    Feb 12, 2022 at 6:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.