-
Notifications
You must be signed in to change notification settings - Fork 13
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
738 text lime in dashboard returns an error #799
738 text lime in dashboard returns an error #799
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed! 💯 Thanks for fixing!
You could add a regression test for this problem. That shouldn't be too much work if you start by copying some existing one. If adding a test is too much hassle for now, just merge the fix in it's current state :-)
I added tests for images, text and timeseries, but encountered a problem with images KernelSHAP, see my updated PR comment above |
This PR fixes #738
Lime runs into an error because of a typo in the variable name -> rand_state instead of random_state.
Additionally lime timeseries does not have this variable, which also returns an error, since the random_state variable is used in all LIME methods. Although random_state is not used in lime timeseries, adding the variable to the class fixes the issue.
Edit:
Added tests for dashboard text, image, and timeseries for LIME and KernelSHAP to complete the dashboard tests. It turned out that the dashboard was actually not working for images with KernelSHAP. I made changes in dashboard/_models_image.py to do this, but I am not sure of the changes are 100% correct. Can someone please check @cwmeijer @loostrum maybe?