Skip to content

Add ability to choose between flattening or using named for nested metrics.#3514

Merged
vfdev-5 merged 8 commits intopytorch:masterfrom
gabrielfruet:feat/metrics-mode
Feb 5, 2026
Merged

Add ability to choose between flattening or using named for nested metrics.#3514
vfdev-5 merged 8 commits intopytorch:masterfrom
gabrielfruet:feat/metrics-mode

Conversation

@gabrielfruet
Copy link
Copy Markdown
Contributor

Fixes #3513

Description:

First of a few PRs to fix this. Enabling the user to choose if should use flattening, named or both.

Check list:

  • New tests are added (if a new feature is added)
  • New doc strings: description and/or example code are in RST format
  • Documentation is updated (if required)

@github-actions github-actions bot added the module: metrics Metrics module label Feb 5, 2026
Copy link
Copy Markdown
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

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

LGTM, it is a good way of fixing the duplicates in BC manner. Thanks !

@vfdev-5 vfdev-5 added this pull request to the merge queue Feb 5, 2026
Merged via the queue into pytorch:master with commit 1830dc6 Feb 5, 2026
24 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Feb 25, 2026
…mode. (#3531)

Fixes #3513

The main reason the issue #3513 was created particularly for me was due
to the ClassificationReport behavior. So i'm creating this PR to add
this functionality following up the #3514 PR.

---------

Co-authored-by: vfdev <[email protected]>
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.

Nested metrics are being duplicated when logging.

2 participants