-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 average_precision metric #2319
Fix average_precision metric #2319
Conversation
…test that failed with the old implementation
Codecov Report
@@ Coverage Diff @@
## master #2319 +/- ##
======================================
Coverage 88% 88%
======================================
Files 70 70
Lines 5501 5501
======================================
Hits 4834 4834
Misses 667 667 |
ee9e14f
to
cc8908f
Compare
Hi ! |
it was not related to your code, just random GitHub issue 🐰 |
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Ok thank you, I thought so but wasn't sure! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What does this PR do?
This PR fixes
pytorch_lightning.metrics.functional.average_precision
. It also adds a test that would have failed with the old implementationParentheses were missing in the definition of the function.
Bug described in #2315.
Before submitting
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 🙃