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

Vision dashboard backend without data characteristics tab #1668

Merged
merged 1 commit into from
Aug 29, 2022

Conversation

jamesbchao
Copy link
Contributor

@jamesbchao jamesbchao commented Aug 25, 2022

The vision dashboard backend without the data characteristics tab so as to make the PR smaller.
The backend functionality and additional fixups include:

  • display images from dataset passed into backend
  • compute single explanation on the fly with loading indicators for each image
  • image explorer view UI changes to make thumbnail size slider work
  • search functionality to filter by predicted or true labels
  • no data characteristics tab
  • no cohort functionality

Screenshot (38)
Screenshot (39)
Screenshot (46)
Screenshot (42)

Description

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 25, 2022

Codecov Report

Merging #1668 (4452ff2) into main (77b295a) will decrease coverage by 0.16%.
The diff coverage is 47.61%.

❗ Current head 4452ff2 differs from pull request most recent head eae618b. Consider uploading reports for the commit eae618b to get more accurate results

@@            Coverage Diff             @@
##             main    #1668      +/-   ##
==========================================
- Coverage   89.04%   88.88%   -0.17%     
==========================================
  Files         105      105              
  Lines        5534     5553      +19     
==========================================
+ Hits         4928     4936       +8     
- Misses        606      617      +11     
Flag Coverage Δ
unittests 88.88% <47.61%> (-0.17%) ⬇️

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

Impacted Files Coverage Δ
...idgets/raiwidgets/responsibleai_dashboard_input.py 90.72% <10.00%> (-5.73%) ⬇️
raiwidgets/raiwidgets/responsibleai_dashboard.py 62.50% <50.00%> (-1.39%) ⬇️
raiwidgets/raiwidgets/__version__.py 100.00% <100.00%> (ø)
responsibleai/responsibleai/__version__.py 100.00% <100.00%> (ø)
responsibleai/responsibleai/_interfaces.py 100.00% <100.00%> (ø)

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

@jamesbchao jamesbchao force-pushed the jbchao/vision-dashboard-backend-no-dc branch 2 times, most recently from fdeba1e to dc3552b Compare August 25, 2022 01:43
2 similar comments
@jamesbchao jamesbchao force-pushed the jbchao/vision-dashboard-backend-no-dc branch from dc3552b to 4452ff2 Compare August 25, 2022 22:28
@jamesbchao jamesbchao force-pushed the jbchao/vision-dashboard-backend-no-dc branch from 4452ff2 to e3819e0 Compare August 26, 2022 01:11
@@ -3,4 +3,4 @@

# Version will be populated during release from version.cfg file
# by running `yarn auto-version`
version = "0.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this version is populated by the release script, so make sure to remove this when merging

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks like you need to re-add back the 0.0.0

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed this for you and pushed to your PR

return ret;
if (itemIndex === 0) {
this.columnCount = Math.ceil(visibleRect.width / this.props.imageDim);
this.rowHeight = Math.floor(visibleRect.width / this.columnCount);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can visibleRect change from image to image? I'm wondering actually if these can all be variables on state.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it changes, but my movtivation behind not making columnCount and rowHeight state variables was to not trigger rerenders when they're calculated. Is it preferable to only use state variables?

{t.key === GlobalTabKeys.VisionTab &&
this.props.visionModelExplanationData && (
<>
<div className={classNames.sectionHeader}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try to use Stack instead of div, like here

Copy link
Contributor Author

@jamesbchao jamesbchao Aug 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just copying all of the other components which use div and h3. Should I still use Stack even if all the other components aren't, or should I update them all to be Stacks?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes please use Stack wherever possible. The other components/examples are probably wrong if they use div. Stack is essentially div but with fluentui sprinkled in to fit our accessibility/style requirements. So please try to use Stack wherever possible instead of div.

@@ -3,4 +3,4 @@

# Version will be populated during release from version.cfg file
# by running `yarn auto-version`
version = "0.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this version is populated by the release script, so make sure to remove this when merging

@@ -3,4 +3,4 @@

# Version will be populated during release from version.cfg file
# by running `yarn auto-version`
version = "0.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh it looks like this hasn't been resolved yet

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed this for you and pushed to your PR

@jamesbchao jamesbchao force-pushed the jbchao/vision-dashboard-backend-no-dc branch from e3819e0 to 60024c2 Compare August 27, 2022 03:01
Copy link
Contributor

@imatiach-msft imatiach-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Will merge this now that you've fixed all comments.

@imatiach-msft imatiach-msft force-pushed the jbchao/vision-dashboard-backend-no-dc branch from 60024c2 to eae618b Compare August 29, 2022 04:52
@imatiach-msft imatiach-msft merged commit f2c5bab into main Aug 29, 2022
@imatiach-msft imatiach-msft deleted the jbchao/vision-dashboard-backend-no-dc branch August 29, 2022 04:54
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