-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Possible to Generate Summary Plots and Dependence Plots using SKLearn Models? #31
Comments
Glad you find it helpful! The Tree SHAP algorithm is a complex C++
implementation I added to XGBoost and and Light GBM. Because it is so fast
and exact it is easy to explain lots of examples and so make summary and
dependence plots. The model agnostic results can also be used for this, but
you would have to take the ‘.effects’ and make a matrix of SHAP values
(last column should be the expected value of the model output), and
remember that there is variability in the estimates.
It would be nice to have Tree SHAP in sklearn but I have not invested the
time there yet or reached out to see if they are interested.
…On Sun, Feb 4, 2018 at 2:57 PM Keita Broadwater ***@***.***> wrote:
Hi,
Thanks for this wonderful resource! It has enhanced my work greatly.
I was wondering if it is possible to generate Summary and Dependence plots
using SKLearn generated models. I have been able to duplicate your work
using my own data trained on Sklearn's forest models. But I have not been
able to create the plots in question. I also notice you don't include them
in your sklearn examples.
Any help or hint is appreciated!
Thanks,
Keita
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#31>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADkTxfmpyYEfcIb1QDySNewyPfdA_7c8ks5tRjW9gaJpZM4R4w-P>
.
|
FYI: I just added a new function that will make it easier to make summary and dependence plots from the model agnostic Kernel SHAP explainer. Following the model agnostic (multi-class) example from the front page we can now get:
|
Thanks for responding and adding additional functionality!! |
connortann
added a commit
to prabathbr/shap
that referenced
this issue
Jun 2, 2023
* Remove unused imports * Move fixture to conftest.py * Enable rule F401 * Remove one more import
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Thanks for this wonderful resource! It has enhanced my work greatly.
I was wondering if it is possible to generate Summary and Dependence plots using SKLearn generated models. I have been able to duplicate your work using my own data trained on Sklearn's forest models. But I have not been able to create the plots in question. I also notice you don't include them in your sklearn examples.
Any help or hint is appreciated!
Thanks,
Keita
The text was updated successfully, but these errors were encountered: