-
Notifications
You must be signed in to change notification settings - Fork 412
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
Make num_classes
optional, in case of micro averaging
#2841
base: master
Are you sure you want to change the base?
Conversation
@baskrahmer how much is missing here? |
I just need to check why the CI is failing. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2841 +/- ##
========================================
- Coverage 69% 41% -28%
========================================
Files 346 332 -14
Lines 19142 18968 -174
========================================
- Hits 13230 7741 -5489
- Misses 5912 11227 +5315 |
num_classes
optional, in case of micro averaging
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.
Thanks!
Actually, shouldn't we check whether |
@@ -307,7 +307,7 @@ class MulticlassStatScores(_AbstractStatScores): | |||
|
|||
def __init__( | |||
self, | |||
num_classes: int, | |||
num_classes: Optional[int] = None, |
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.
@baskrahmer let's check #2841 (comment)
What does this PR do?
Fixes #2837
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--2841.org.readthedocs.build/en/2841/