-
Notifications
You must be signed in to change notification settings - Fork 18
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
shap v0.36.0 causes error in force_plot #12
Comments
Thanks @hfshr for figuring out the issue, I’ll try to figure out a good workaround! |
Hi Brandon, I think that I have a related error and I don't know how to fix it when running the force_plot demo script |
Thanks @jbwoillard, I'll push a change this weekend. |
@hfshr, @jbwoillard this should be fixed now if anyone wants to confirm! |
Dear bgreenwell, I have made a try but still have the same error message. I also have trouble to load the last version from github, I ask a friend to try it but he reported the same error. |
@jbwoillard Hmm, not sure what the issue is, but I definitely see a problem on my end. What error message did you get after trying to install? |
Sorry, here you have it |
@jbwoillard it's hopefully fixed now. Had to make some other changes (some how the last version I pushed was corrupt). I'm experimenting with some new reticulate options, so I expect more changes before the next CRAN release. I tested it out on old and new versions of shap here: https://github.com/bgreenwell/fastshap/blob/master/slowtests/sfastshap-force_plot.R. Let me know if you still experience issues. |
I just had a chance to try this out quickly and worked perfectly for me with shap 0.38.1, thanks @bgreenwell! |
Works again, thanks for the fix @bgreenwell ! |
@bgreenwell thanks, that works :) (for me with only with the old version shap 0.35.0) |
Looks like the shap API has changed again: https://github.com/slundberg/shap/blob/master/shap/plots/_force.py. This will likely cause an error when working with the latest version of shap. |
pip install ipython pkg_resources.require("shap==0.35.0") This worked for me. (Thanks for the package btw! Awesome. |
The problems are solved using this article |
All plotting functions have been deprecated in favor of using shapviz. |
Hi Brandon,
Thanks for the great package. I've noticed that shap v0.36.0 made some changes to the API that causes fastshap::force_plot to fail. Specifically,
shap$save_html(tfile, plot_html = fp)
needs to be changed toshap$save_html(tfile, plot = fp)
to work with the latest version of shap.Not sure what the best workaround would be, either requiring the latest version of shap or maybe if the original method throws an error, try again with the new method?
The text was updated successfully, but these errors were encountered: