-
Notifications
You must be signed in to change notification settings - Fork 413
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 ignored custom callable in retrieval metric aggregation #2364
Conversation
nice, can you pls add test to cover this bug |
Tests already exist. The tests compare the computed metric with a reference metric computed using sklearn. The problem is that the computed and reference metrics are aggregated using the same faulty aggregation function. I would propose to copy the fixed aggregation function into the tests. That seems redundant, though. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2364 +/- ##
========================================
- Coverage 69% 35% -34%
========================================
Files 305 305
Lines 17164 17164
========================================
- Hits 11835 5955 -5880
- Misses 5329 11209 +5880 |
* fix retrieval aggregation * fix retrieval tests * changelog --------- Co-authored-by: Nicki Skafte Detlefsen <[email protected]> (cherry picked from commit dce2368)
* fix retrieval aggregation * fix retrieval tests * changelog --------- Co-authored-by: Nicki Skafte Detlefsen <[email protected]> (cherry picked from commit dce2368)
What does this PR do?
Fixes #2363
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 🙃
📚 Documentation preview 📚: https://torchmetrics--2364.org.readthedocs.build/en/2364/