Skip to content

What's the "right" way to use metrics? #356

Answered by ethanwharris
olliethomas asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @olliethomas I think the recommended approach is to log the metric object. AFAIK, it enables using the on_epoch flag to have the metric automatically reduced (with compute) at the end of the epoch. The docs here may be helpful: https://torchmetrics.readthedocs.io/en/latest/pages/lightning.html#logging-torchmetrics

Hope that helps 😃

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@olliethomas
Comment options

Answer selected by olliethomas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants