Skip to content

Enhance Support Adding a MetricCollection to Another MetricCollection in add_metrics Function#3032

Merged
Borda merged 10 commits into
Lightning-AI:masterfrom
rittik9:rittik/metric_collection
Mar 31, 2025
Merged

Enhance Support Adding a MetricCollection to Another MetricCollection in add_metrics Function#3032
Borda merged 10 commits into
Lightning-AI:masterfrom
rittik9:rittik/metric_collection

Conversation

@rittik9

@rittik9 rittik9 commented Mar 27, 2025

Copy link
Copy Markdown
Collaborator

What does this PR do?

Fixes #3030

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

@codecov

codecov Bot commented Mar 27, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 70%. Comparing base (5746b7a) to head (f539d1e).
Report is 74 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #3032    +/-   ##
=======================================
- Coverage      70%     70%    -0%     
=======================================
  Files         355     341    -14     
  Lines       19682   19500   -182     
=======================================
- Hits        13796   13610   -186     
- Misses       5886    5890     +4     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rittik9
rittik9 requested a review from stancld as a code owner March 27, 2025 18:42
@rittik9 rittik9 changed the title Support Adding a MetricCollection to Another MetricCollection in add_metrics Function[WIP] Enhance Support Adding a MetricCollection to Another MetricCollection in add_metrics Function Mar 27, 2025
@mergify mergify Bot added the ready label Mar 27, 2025
@SkafteNicki SkafteNicki added this to the v1.8.0 milestone Mar 31, 2025
Comment thread src/torchmetrics/collections.py Outdated
Comment thread src/torchmetrics/collections.py

@SkafteNicki SkafteNicki left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@Borda
Borda enabled auto-merge (squash) March 31, 2025 13:09
@Borda
Borda merged commit 7dc709c into Lightning-AI:master Mar 31, 2025
Borda pushed a commit that referenced this pull request Apr 7, 2025
…ion` in `add_metrics` Function (#3032)

* support addition of a MetricCollection to a MetricCollection
* make keep_base = False
* add unittests
* Update CHANGELOG.md
* fixes

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Nicki Skafte Detlefsen <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 7dc709c)
Borda pushed a commit that referenced this pull request Apr 7, 2025
…ion` in `add_metrics` Function (#3032)

* support addition of a MetricCollection to a MetricCollection
* make keep_base = False
* add unittests
* Update CHANGELOG.md
* fixes

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Nicki Skafte Detlefsen <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 7dc709c)
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.

Supporting the addition of a MetricCollection to a MetricCollection

3 participants