Why is "micro" not in "allowed average" in AUROC? #730
Unanswered
JoeNatan30
asked this question in
Classification
Replies: 1 comment 1 reply
-
I do not get the error you are mentioning when running locally.
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Documentation at AUROC shows that "micro" can be used on average https://torchmetrics.readthedocs.io/en/stable/references/modules.html#f1
So, I initialized AUROC in my code in this way
self.val_auroc = torchmetrics.AUROC(num_classes=NUM_CLASSES, average="micro")
but I got this error message
When I check AUROC code, I notice that "micro" is not in "allowed_average" https://github.com/PyTorchLightning/metrics/blob/master/torchmetrics/classification/auroc.py
https://github.com/PyTorchLightning/metrics/blob/master/torchmetrics/functional/classification/auroc.py
I am not sure if it is a documentation error or developed functionality missing from the AUROC code.
I use conda torchmetrics version (0.6.2)
Beta Was this translation helpful? Give feedback.
All reactions