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 cornercase of average precision #2507

Merged
merged 5 commits into from
Apr 17, 2024
Merged

Conversation

SkafteNicki
Copy link
Member

@SkafteNicki SkafteNicki commented Apr 16, 2024

What does this PR do?

Fixes #2494
Make sure that our implementation matches sklearn implementation.

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--2507.org.readthedocs.build/en/2507/

@SkafteNicki SkafteNicki added the bug / fix Something isn't working label Apr 16, 2024
@SkafteNicki SkafteNicki added this to the v1.3.x milestone Apr 16, 2024
Copy link

codecov bot commented Apr 16, 2024

Codecov Report

Merging #2507 (ede5853) into master (5259c22) will decrease coverage by 27%.
Report is 1 commits behind head on master.
The diff coverage is 50%.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #2507     +/-   ##
========================================
- Coverage      69%     41%    -27%     
========================================
  Files         307     307             
  Lines       17404   17414     +10     
========================================
- Hits        11989    7223   -4766     
- Misses       5415   10191   +4776     

@mergify mergify bot added the ready label Apr 16, 2024
@Borda Borda merged commit be39708 into master Apr 17, 2024
46 of 49 checks passed
@Borda Borda deleted the bugfix/average_precision_zero_input branch April 17, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Behaviors of AUROC and Average Precision are inconsistent when all labels are equal
3 participants