Skip to content
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

Merged
merged 16 commits into from
Jun 18, 2024

Conversation

laurasootes
Copy link
Contributor

@laurasootes laurasootes commented Jun 13, 2024

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?

@laurasootes laurasootes linked an issue Jun 13, 2024 that may be closed by this pull request
Copy link
Member

@cwmeijer cwmeijer left a 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 :-)

@laurasootes
Copy link
Contributor Author

I added tests for images, text and timeseries, but encountered a problem with images KernelSHAP, see my updated PR comment above

@laurasootes laurasootes merged commit a77e66b into main Jun 18, 2024
17 checks passed
@loostrum loostrum deleted the 738-text-lime-in-dashboard-returns-an-error branch June 18, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Text LIME in dashboard returns an error
2 participants