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

fix duplicate categorical features added from image exif metadata in RAI Vision Dashboard #2483

Merged

Conversation

imatiach-msft
Copy link
Contributor

Description

fix duplicate categorical features added from image exif metadata in RAI Vision Dashboard

Seeing duplicate categorical features in RAI VIsion Dashboard:
image

It looks like we are adding them for every row but we should only add them once. Interestingly, this does not cause any errors currently as we are just checking if some feature name is in the list of categorical features in code, but it's definitely not desirable and can slow performance for larger image data.

This PR only adds the categorical feature names once to the list during exif feature metadata extraction and adds a test to validate 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.

@imatiach-msft imatiach-msft force-pushed the ilmat/fix-duplicate-vision-categorical-features branch 3 times, most recently from 3e45d84 to 91651b8 Compare January 4, 2024 22:51
@codecov-commenter
Copy link

codecov-commenter commented Jan 4, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (2556253) 88.83% compared to head (91651b8) 81.06%.

Files Patch % Lines
...n/responsibleai_vision/utils/feature_extractors.py 85.18% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2483      +/-   ##
==========================================
- Coverage   88.83%   81.06%   -7.78%     
==========================================
  Files         134       26     -108     
  Lines        7731     2318    -5413     
==========================================
- Hits         6868     1879    -4989     
+ Misses        863      439     -424     
Flag Coverage Δ
unittests 81.06% <85.18%> (-7.78%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

2 similar comments
@imatiach-msft imatiach-msft merged commit 464c9f0 into main Jan 5, 2024
97 checks passed
@imatiach-msft imatiach-msft deleted the ilmat/fix-duplicate-vision-categorical-features branch January 5, 2024 17: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.

None yet

3 participants