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 naming of statistics in MeanAveragePrecision with custom max det thresholds #2367

Merged
merged 7 commits into from
Feb 12, 2024

Conversation

SkafteNicki
Copy link
Member

@SkafteNicki SkafteNicki commented Feb 9, 2024

What does this PR do?

Fixes #2360

Two fixes in this PR:

Before submitting
  • Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?
PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃


📚 Documentation preview 📚: https://torchmetrics--2367.org.readthedocs.build/en/2367/

@SkafteNicki SkafteNicki added the bug / fix Something isn't working label Feb 9, 2024
@SkafteNicki SkafteNicki added this to the v1.3.x milestone Feb 9, 2024
@SkafteNicki SkafteNicki changed the title Bugfix/map naming max det thresholds Fix naming of statistics in MeanAveragePrecision with custom max det thresholds Feb 9, 2024
Copy link

codecov bot commented Feb 12, 2024

Codecov Report

Merging #2367 (7e9f785) into master (b6f6e07) will decrease coverage by 33%.
Report is 1 commits behind head on master.
The diff coverage is 100%.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #2367     +/-   ##
========================================
- Coverage      69%     36%    -33%     
========================================
  Files         305     305             
  Lines       17164   17164             
========================================
- Hits        11836    6208   -5628     
- Misses       5328   10956   +5628     

@Borda Borda merged commit 9253717 into master Feb 12, 2024
38 of 47 checks passed
@Borda Borda deleted the bugfix/map_naming_max_det_thresholds branch February 12, 2024 11:19
Borda pushed a commit that referenced this pull request Feb 12, 2024
…t thresholds (#2367)

* fix src code + fix docs
* fix tests

(cherry picked from commit 9253717)
detection per image
- mar_{mdt[1]}: (:class:`~torch.Tensor`), mean average recall for `max_detection_thresholds[1]` (default 10)
detection per image
- mar_{mdt[1]}: (:class:`~torch.Tensor`), mean average recall for `max_detection_thresholds[2]` (default 100)
Copy link

Choose a reason for hiding this comment

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

Is this a typo here? Should it maybe be

mar_{mdt[2]}: (:class:`~torch.Tensor`), mean average recall for `max_detection_thresholds[2]` (default 100)
mar_{mdt[1]}: (:class:`~torch.Tensor`), mean average recall for `max_detection_thresholds[2]` (default 100)

I realize this is merged already, but maybe this can be fixed boyscout-style in some future PR.

Borda pushed a commit that referenced this pull request Feb 12, 2024
…t thresholds (#2367)

* fix src code + fix docs
* fix tests

(cherry picked from commit 9253717)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MeanAveragePrecision doesn't work as expected when using max_detection_thresholds != [1, 10, 100]
3 participants