How to use metrics with multi labels #526
Unanswered
FrancescoSaverioZuppichini
asked this question in
Classification
Replies: 1 comment
-
For multi-labels we assume that you are providing data as pred = torch.tensor([0, 0, 0, 0]).unsqueeze(0)
target = torch.tensor([0, 1, 0, 1]).unsqueeze(0) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
I hope you are doing great! I was wondering how to correctly use a metric, e.g. Accuracy, with multi labels. For example
Where
target
is a one-hot vector and iftarget[i] == 1
it means that we have classi
in the target. In this case, accuracy doesn't work, since it only compares the raw data inside it.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions