ModelOriented / shapper

An R wrapper of SHAP python library
https://modeloriented.github.io/shapper/
58 stars 16 forks source link

Support for Original SHAP Visualizations #21

Open jlevy44 opened 5 years ago

jlevy44 commented 5 years ago

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!

agosiewska commented 5 years ago

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.

jlevy44 commented 5 years ago

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.

maksymiuks commented 5 years ago

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.

jlevy44 commented 5 years ago

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

jznv commented 4 years ago

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

agosiewska commented 4 years ago

Sure :)

bgreenwell commented 3 years ago

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.

agosiewska commented 3 years ago

Hey! Thanks!