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 for custom prefix/postfix and metric collection #2070

Merged
merged 7 commits into from
Sep 11, 2023

Conversation

SkafteNicki
Copy link
Member

@SkafteNicki SkafteNicki commented Sep 11, 2023

What does this PR do?

Fixes #2065
Make sure that metric collection does not conflict with user attributes prefix/postfix

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

@SkafteNicki SkafteNicki added the bug / fix Something isn't working label Sep 11, 2023
@SkafteNicki SkafteNicki added this to the v1.1.x milestone Sep 11, 2023
@SkafteNicki SkafteNicki changed the title Bugfix/prefix postfix metriccollection Bugfix for custom prefix/postfix and metric collection Sep 11, 2023
src/torchmetrics/collections.py Outdated Show resolved Hide resolved
src/torchmetrics/collections.py Outdated Show resolved Hide resolved
SkafteNicki and others added 3 commits September 11, 2023 10:53
Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
@Borda Borda requested a review from a team September 11, 2023 09:14
@Borda Borda enabled auto-merge (squash) September 11, 2023 09:15
Copy link
Contributor

@stancld stancld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@codecov
Copy link

codecov bot commented Sep 11, 2023

Codecov Report

Merging #2070 (318bfa2) into master (2dfe0a8) will increase coverage by 0%.
The diff coverage is 100%.

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #2070   +/-   ##
======================================
  Coverage      87%     87%           
======================================
  Files         287     287           
  Lines       16069   16072    +3     
======================================
+ Hits        13961   13964    +3     
  Misses       2108    2108           

@mergify mergify bot added the ready label Sep 11, 2023
@Borda Borda merged commit 6538d1a into master Sep 11, 2023
64 checks passed
@Borda Borda deleted the bugfix/prefix_postfix_metriccollection branch September 11, 2023 11:06
Borda pushed a commit that referenced this pull request Sep 11, 2023
Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
(cherry picked from commit 6538d1a)
matsumotosan pushed a commit to matsumotosan/metrics that referenced this pull request Sep 19, 2023
…2070)

Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug / fix Something isn't working ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prefix clash with MetricCollection
4 participants