Replies: 1 comment
|
Hi, Shapash should work with logisticregression. We don't use it with Shapash and there must be a problem with the unit tests for the error not to show up. I'll create an issue. #475 However, you can use it like that : Compute shap contributions: (https://shap.github.io/shap/notebooks/linear_explainer/Sentiment%20Analysis%20with%20Logistic%20Regression.html) And then add contributions to Shapash: Currently, you still need to give a model that is works with Shapash, so you can give a fake randomforest model, for example. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
I am a new user of shapash.
I've tried to use SmartExplainer with sklearn LogisticRegression model but I've got an error when instantiating the object.
My code is very simple:
and the error:
Is LogisticRegression compatible with shapash or I am missing something when instantiating ?
Thanks for your help
All reactions