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

Bugfix/topk accuracy #2423

Merged
merged 6 commits into from
Mar 6, 2024
Merged

Bugfix/topk accuracy #2423

merged 6 commits into from
Mar 6, 2024

Conversation

SkafteNicki
Copy link
Member

@SkafteNicki SkafteNicki commented Mar 5, 2024

What does this PR do?

Fixes #2418
Fix interaction between top_k and average="macro" for classification metrics.

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

@SkafteNicki SkafteNicki added the bug / fix Something isn't working label Mar 5, 2024
Copy link

codecov bot commented Mar 5, 2024

Codecov Report

Merging #2423 (96bb880) into master (1951a06) will not change coverage.
The diff coverage is 57%.

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #2423   +/-   ##
======================================
  Coverage      69%     69%           
======================================
  Files         307     307           
  Lines       17363   17363           
======================================
  Hits        11961   11961           
  Misses       5402    5402           

@mergify mergify bot added the ready label Mar 5, 2024
@Borda Borda merged commit 1351009 into master Mar 6, 2024
53 of 58 checks passed
@Borda Borda deleted the bugfix/topk_accuracy branch March 6, 2024 12:51
Borda pushed a commit that referenced this pull request Mar 16, 2024
* add tests
* fix implementation
* tests
* changelog

(cherry picked from commit 1351009)
Borda pushed a commit that referenced this pull request Mar 18, 2024
* add tests
* fix implementation
* tests
* changelog

(cherry picked from commit 1351009)
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.

top-k multiclass macro accuracy is not calculated correctly
3 participants