-
-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Index Dropdown has a bug for large no. of values #254
Comments
Hi @AkshayRShiraguppi, when there are a large number of indexes (by default >1000) the dashboard defaults to server side index filtering, as it would become to heavy to store all the indexes client inside inside the browser for each index dropdown. But apparently this is is not working well for you? you can configure the behaviour with the parameter What do your indexes look like though that the server side filtering doesn't seem to work? Do you have some examples? Does it work with the titanic examples (such as in the README) if you set e.g. |
Hi @oegedijk , Titanic example works fine. I presumed it would since it was tested on it. Code:
|
Hmm, that is really strange. First I thought it was maybe due to the numeric indexes, but e.g. this seems to work just fine:
Can you reproduce it with a dataset that I could use as well? |
It definitely has to do something with server side filtering I assume. As the sweet spot is 1000 records. I think the parameter max_idx_in_dropdown isn't really working to stop server side filtering.
But, i still have the same issue. |
Here is the code that can replicate the issue. Its the same titanic code, I just made the rows to duplicate and made it to 2000 records. @oegedijk
|
Okay, I haven't solved it yet, but at least isolated it: for some reason updating the dropdown options based on. the search value triggers the random index button callback for some unknown reason. That's why you get the weird behaviour. Why it triggers it is still very mysterious to me though. Will investigate more later |
Thanks. By the way awesome job on creating this explainer dashboard. It's helping us a lot to study and showcase model explainability. Would be better if there were lightgbm trees and new shapley plots. For now, |
update: managed to fix the problem with the dropdown search (also opened an issue with dash here: plotly/dash#2428), but still running into problems properly propagating the index to other connected components. This is weirdly stochastic, sometimes it works sometimes it doesn't. I think it is probably related to the first issue, but haven't been able to fix it yet... |
So this seems to be a dash issue that got introduced in a recent version (see e.g. plotly/dash#2411), but I think installing |
Yes. Thank you. That fixes the ids getting picked at random. It still has the issue with dropdown button not listing all ids. But, the parameter max_idx_in_dropdown helped to fix that issue. Thank you for your valuable time in debugging this. Appreciate it. |
I am not able to type and search specific value in search box in 'whatif' and 'Individual prediction' tabs to choose an index.(When typed a specific number, it just shows wrong values in drop down and clears what i typed) (Random button seems to work fine)
Drop down doesn't work if there is a lot of index values(~2k). Selecting one index in it doesn't accurately filter to the right id.
@oegedijk
The text was updated successfully, but these errors were encountered: