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

add UI tests for RAI text dashboard #1636

Merged
merged 1 commit into from
Aug 15, 2022
Merged

Conversation

imatiach-msft
Copy link
Contributor

@imatiach-msft imatiach-msft commented Aug 12, 2022

Description

Add UI tests for the new RAI text dashboard, specifically the individual feature importances for text component.

This includes testing the:
1.) TextHighlighting component, which displays the text passage
2.) The TextFeatureLegend
3.) The local importance values as a bar chart

More testing could be done in the future for:
1.) Slider, to select different number of words to view in the bar chart
2.) Class importance weights dropdown
3.) Radio button to select all features, positive features or negative features

Resolves issue: #1549

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 Aug 12, 2022

Codecov Report

Merging #1636 (e4f894b) into main (e4f894b) will not change coverage.
The diff coverage is n/a.

❗ Current head e4f894b differs from pull request most recent head 128d92d. Consider uploading reports for the commit 128d92d to get more accurate results

@@           Coverage Diff           @@
##             main    #1636   +/-   ##
=======================================
  Coverage   89.01%   89.01%           
=======================================
  Files         105      105           
  Lines        5489     5489           
=======================================
  Hits         4886     4886           
  Misses        603      603           
Flag Coverage Δ
unittests 89.01% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out 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 0a4c5dc into main Aug 15, 2022
@imatiach-msft imatiach-msft deleted the ilmat/text-ui-tests branch August 15, 2022 20:14
gaugup pushed a commit that referenced this pull request Aug 15, 2022
gaugup added a commit that referenced this pull request Aug 16, 2022
* Add identity feature value to causal hover over

Signed-off-by: Gaurav Gupta <[email protected]>

* Fix lint errors

Signed-off-by: Gaurav Gupta <[email protected]>

* Minor refactoring in counterfactual package (#1634)

Signed-off-by: Gaurav Gupta <[email protected]>

Signed-off-by: Gaurav Gupta <[email protected]>

* Add identity feature value to feature importance hover over (#1637)

* Add identity feature value to feature importance hover over

Signed-off-by: Gaurav Gupta <[email protected]>

* Fix bug

Signed-off-by: Gaurav Gupta <[email protected]>

* Fix code review comments

Signed-off-by: Gaurav Gupta <[email protected]>

* Lint fix

Signed-off-by: Gaurav Gupta <[email protected]>

Signed-off-by: Gaurav Gupta <[email protected]>

* add UI tests for RAI text dashboard (#1636)

* Fix code review comments

Signed-off-by: Gaurav Gupta <[email protected]>

* lint fix

Signed-off-by: Gaurav Gupta <[email protected]>

Signed-off-by: Gaurav Gupta <[email protected]>
Co-authored-by: Ilya Matiach <[email protected]>
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