shapper icon indicating copy to clipboard operation
shapper copied to clipboard

Support for Original SHAP Visualizations

Open jlevy44 opened this issue 5 years ago • 8 comments

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!

jlevy44 avatar Sep 09 '19 18:09 jlevy44

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.

agosiewska avatar Sep 12 '19 17:09 agosiewska

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.

jlevy44 avatar Sep 16 '19 00:09 jlevy44

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.

maksymiuks avatar Sep 16 '19 00:09 maksymiuks

I'll see what I can do. Also short on time as well.

jlevy44 avatar Sep 25 '19 17:09 jlevy44

I could use the original visualizations! If I do a PR, would anyone be around to pull it?

jznv avatar Aug 07 '20 22:08 jznv

Sure :)

agosiewska avatar Aug 10 '20 07:08 agosiewska

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.

bgreenwell avatar Mar 04 '21 21:03 bgreenwell

Hey! Thanks!

agosiewska avatar Mar 05 '21 09:03 agosiewska