Open mycarta opened 5 years ago
If i am right for kernel explainer, you have to pass in either model.predict or model.predict_proba or model.decision_function - in your case - r.predict since you want to explain the regression predictions Refer #506
I will try it
If i am right for kernel explainer, you have to pass in either model.predict or model.predict_proba or model.decision_function - in your case - r.predict since you want to explain the regression predictions Refer #506
Thank you so much this worked!
Please check it out this official website for more detail: https://shap.readthedocs.io/en/latest/example_notebooks/tabular_examples/model_agnostic/Iris%20classification%20with%20scikit-learn.html
This issue has been inactive for two years, so it's been automatically marked as 'stale'.
We value your input! If this issue is still relevant, please leave a comment below. This will remove the 'stale' label and keep it open.
If there's no activity in the next 90 days the issue will be closed.
I am having problems using
KernelExplainer
with scikit-learn'ssvm.SVR
regressor, and passing thebest_estimator_
to the explainer afterGridSearchCV
.I've noticed other issues: i.e. 147, I am not sure if this is exactly the same problem.
Below is a minimal reproducible example:
which throws the error:
Can you suggest a workaround? Thanks!