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

in RAI text dashboard, fix topK and maxK on slidebar not updating when selecting different text documents #1737

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

imatiach-msft
Copy link
Contributor

Description

In RAI text dashboard, the slidebar is currently not updating when selecting different instances correctly. We should recompute the current set value and the max value in the slidebar when the user selects different documents/instances. It is questionable though if we indeed want to "reset" the current topK value, as the user may want to keep the same number of top words when selecting different instances, but I think it is better to do this since the current value may not make sense when looking at documents that vary in # of words significantly. However for maxK parameter (the max number of words user can view in text highlighting component) we definitely should recompute this value and it is a clear bug not to do this.

Checklist

  • I have added screenshots above for all UI changes.
  • I have added e2e tests for all UI changes.
  • Documentation was updated if it was needed.

@codecov-commenter
Copy link

codecov-commenter commented Sep 21, 2022

Codecov Report

Merging #1737 (b47115b) into main (011862e) will increase coverage by 3.10%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1737      +/-   ##
==========================================
+ Coverage   88.99%   92.10%   +3.10%     
==========================================
  Files         105       86      -19     
  Lines        5589     4268    -1321     
==========================================
- Hits         4974     3931    -1043     
+ Misses        615      337     -278     
Flag Coverage Δ
unittests 92.10% <ø> (+3.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
raiwidgets/raiwidgets/explanation_constants.py
...idgets/raiwidgets/responsibleai_dashboard_input.py
raiwidgets/raiwidgets/interfaces.py
raiwidgets/raiwidgets/fairness_dashboard.py
raiwidgets/raiwidgets/error_handling.py
raiwidgets/raiwidgets/dashboard.py
raiwidgets/raiwidgets/explanation_dashboard.py
raiwidgets/raiwidgets/cohort.py
raiwidgets/raiwidgets/__version__.py
...iwidgets/raiwidgets/explanation_dashboard_input.py
... and 9 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

1 similar comment
@imatiach-msft imatiach-msft merged commit 51a2876 into main Sep 21, 2022
@imatiach-msft imatiach-msft deleted the ilmat/fix-top-k branch September 21, 2022 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants