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
No module named 'shap.explainers' with 0.13 in LightGBM notebook #54
Comments
Working on this now. I am undoing the numba dependency I added today, which will allow travis to check this again. |
Travis is happy now with 13.1, and it works on my checkout. Let me know if that fixed it. (seems like numba and pip don't play nice) |
Hi, I just installed - Successfully installed iml-0.5.1 shap-0.13.1 One hour ago - fresh package, I too get this error: ModuleNotFoundError: No module named 'shap.explainers' |
@firmai what OS are you on? |
I just pushed a fix to the setup.py script that should fix it (0.13.2). I'll also test more here though |
Everything seems to be working again now. This was all started by pushing a new core for the Tree SHAP method to support sklearn models. So now it looks like that core alg, from what I can tell, is working. If anyone still has issues let me know and I'll reopen this. |
Thanks @slundberg, I had this issue yesterday however it is fixed now after the update. |
Hi! I tried to install shap using |
@e7dud7e is anything wrong? |
Hi! Thanks for checking back! Pip install works fine on a virtual machine that I’m running, so I think I’ll be okay. It just didn’t work on my local machine, but will just stick with the virtual machine. Thanks! |
* chore: remove F821 from ruff ignore * fix: missing mpl import * fix: undefined name errors in beeswarm And also temporarily remove the SHAP interaction beeswarm plot code (it's not runnable at the moment, because we ensured that the ndim of SHAP values was 2 above, so it can never be 3 to trigger the interaction beeswarm plot here). The removal of code here is mostly just to appease ruff. Will create a separate issue for this to re-introduce SHAP interaction values plotting again later on. Maybe it should be implemented as a separate function.
After installing 0.13 (with lightgbm 2.1.0), the import for the notebook 'Census income classification with LightGBM' fail as follows (works fine with 0.12.1):
The text was updated successfully, but these errors were encountered: