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 for aggregate parameter passed to torchmetrics #2235

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

imatiach-msft
Copy link
Contributor

Description

The MeanAveragePrecision no longer takes in an aggregate parameter. This PR fixes this issue by removing it and adding a test to validate the compute_object_detection_metrics call. Note I do not remove the UI changes here since we may still want to keep this parameter when computing in aggregate metrics across classes - but we need to call a different method in this case anyway, and this is currently not yet supported.

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.

1 similar comment
metrics = rai_insights.compute_object_detection_metrics(
selection_indexes, aggregate_method, class_name, iou_threshold,
object_detection_cache)
assert len(metrics) == 2
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe also assert the number of metrics per cohort is 3?

@imatiach-msft imatiach-msft force-pushed the ilmat/torchmetrics-fix branch 2 times, most recently from 08c09b7 to 261512f Compare August 18, 2023 18:29
1 similar comment
@codecov-commenter
Copy link

Codecov Report

Merging #2235 (0764fae) into main (b887bf2) will decrease coverage by 13.16%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             main    #2235       +/-   ##
===========================================
- Coverage   88.58%   75.42%   -13.16%     
===========================================
  Files         129       14      -115     
  Lines        7366     1241     -6125     
===========================================
- Hits         6525      936     -5589     
+ Misses        841      305      -536     
Flag Coverage Δ
unittests 75.42% <ø> (-13.16%) ⬇️

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

Files Changed Coverage Δ
..._vision/rai_vision_insights/rai_vision_insights.py 78.04% <ø> (+5.66%) ⬆️

... and 115 files with indirect coverage changes

@imatiach-msft imatiach-msft merged commit f6091d3 into main Aug 21, 2023
92 checks passed
@imatiach-msft imatiach-msft deleted the ilmat/torchmetrics-fix branch August 21, 2023 16:55
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