Do compute_metrics() compute results over the whole dataset (all batches) or a single batch? #1516
Unanswered
bryanbocao
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear mmlab community,
Hope you are doing well!
I am trying to define a custom metric score but it operates in the dataset-wise instead of batch-wise fashion - it requires to process all the results from all samples (all batches) in a dataset and cannot be done in just a single or several batches.
I checked the
compute_metric()
in the tutorial https://mmengine.readthedocs.io/en/latest/tutorials/evaluation.html:The description of
Args
saysMy confusion is whether the
each batch
refers to (1)one batch
or (2)all batches in the whole dataset
. The actual implementation later seems to suggest the latter (2)all batches in the whole dataset
:It would be great to provide further clarification. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions