You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The explainer._predict_down() method, in line 116 has the following:
target_yhat = self.clf.predict(observation)
But for classification this is always cast to 1.0 or 0.0 (for binary classification), thus making the contributions sum up to 0.0 or 1.0 and not to the predicted probability of the model.
Should the aforementioned line not be changed into:
target_yhat = self.clf.predict_proba(observation)
?
thanks.
The text was updated successfully, but these errors were encountered:
The explainer._predict_down() method, in line 116 has the following:
target_yhat = self.clf.predict(observation)
But for classification this is always cast to 1.0 or 0.0 (for binary classification), thus making the contributions sum up to 0.0 or 1.0 and not to the predicted probability of the model.
Should the aforementioned line not be changed into:
target_yhat = self.clf.predict_proba(observation)
?
thanks.
The text was updated successfully, but these errors were encountered: