Manually averaging metrics when logging #12636
-
I have a metric from Accuracy(
num_classes=self.model.out_channels,
average='none',
ignore_index=self.ignore_index
) Obviously I can not log this, however I don't want to set average to any aggregation. I want to log its mean in How to solve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
From this comment I had the idea that:
However, this behavior has changed, now calling |
Beta Was this translation helpful? Give feedback.
From this comment I had the idea that:
However, this behavior has changed, now calling
compute()
does not reset the state of the metrics. See PR #5409