-
-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to guess the type of shap explainer to use #10
Comments
Ah, yeah, I could clarify that error message. In an earlier iteration of explainerdashboard you had to pass a parameter on what kind of shap explainer your model needed (shap.TreeExplainer, shap.LinearExplainer, shap.KernelExplainer, etc), by passing a parameter to the explainer e.g. Then I made it default to What is the model that you fitted? If it's a linear model you would pass it for example as:
|
Thanks. It's a sklearn.ensemble.RandomForestRegressor so i'll use explainer = RegressionExplainer(model, X_test, y_test, shap='tree') |
That's weird, that should definitely be detected (and it works in the tests that use a RandomForestRegressor as well). What do you see when your For reference, these models should all automatically get tree_models = ['RandomForestClassifier', 'RandomForestRegressor', |
Actually this follows #11 Probably because it was a pipeline it's wasn't familiar with the type of model. |
Ah, got it. Will add supporting sklearn pipelines to the roadmap! |
First time using this code. Thanks.
When I try
explainer = RegressionExplainer(model, X_test, y_test)
I get
i'm not sure where to put this
The text was updated successfully, but these errors were encountered: