shapper
shapper copied to clipboard
Support for Original SHAP Visualizations
Hey there!
Nice package! I'm primarily a python user, but many of my colleagues would find this useful. Will there be support for the visualization modules introduced in the original SHAP repo? Namely their summary and force plots? Happy to PR.
Thanks!
Yeah, sure! All PRs are welcome :) I was trying to add support for visualizations from the original shap, but I couldn't integrate their javascripts with RStudio viewer.
Ah I see. You could try setting "matplotlib=True" for summary and force plots, if that helps at all. I can also PR it. But it should disable the javascript during plotting.
First of all, thank You so much! :)
Indeed, that could work. Feel free to PR if You have sth ready to go. Unfortunately I'm quite short on time these days and can do it on my own not before October.
I'll see what I can do. Also short on time as well.
I could use the original visualizations! If I do a PR, would anyone be around to pull it?
Sure :)
Cool package. If you guys are still working to integrate the original shap visualizations, I have an example in {fastshap} using forceplot(). Works fine in and out of RStudio and in Rmarkdown, as far as I can tell: https://github.com/bgreenwell/fastshap/blob/master/R/force_plot.R
You’d need to make a few slight changes to adapt to your output. Same idea should work for the other visualizations as well.
Hey! Thanks!