-
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: MetricCollection
did not copy the inner state of the metric in ClasswiseWrapper
when computing group metrics
#2390
Conversation
…Wrapper when computing groups metrics Issue Link: Lightning-AI#2389
MetricCollection
did not copy the inner state of the metric in ClasswiseWrapper
when computing group metrics
I find the The fix has been updated to the source branch. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2390 +/- ##
========================================
- Coverage 69% 36% -33%
========================================
Files 307 307
Lines 17348 17363 +15
========================================
- Hits 11957 6218 -5739
- Misses 5391 11145 +5754 |
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.
Looks fine to me, @SkafteNicki @justusschock mind check pls 🐰
… `ClasswiseWrapper` when computing group metrics (#2390) * fix: MetricCollection did not copy inner state of metric in ClasswiseWrapper when computing groups metrics Issue Link: #2389 * fix: set _persistent and _reductions be same as internal metric * test: check metric state_dict wrapped in `ClasswiseWrapper` --------- Co-authored-by: Jirka Borovec <[email protected]> (cherry picked from commit 1951a06)
… `ClasswiseWrapper` when computing group metrics (#2390) * fix: MetricCollection did not copy inner state of metric in ClasswiseWrapper when computing groups metrics Issue Link: #2389 * fix: set _persistent and _reductions be same as internal metric * test: check metric state_dict wrapped in `ClasswiseWrapper` --------- Co-authored-by: Jirka Borovec <[email protected]> (cherry picked from commit 1951a06)
MetricCollection did not copy the inner state of the metric in ClasswiseWrapper when computing group metrics
Issue Link: #2389
What does this PR do?
Fixes #2389
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--2390.org.readthedocs.build/en/2390/