Question about the intended behavior of Accuracy with average="none"
and nan
results
#466
Unanswered
phiyodr
asked this question in
Classification
Replies: 1 comment 1 reply
-
Hi @phiyodr, |
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.
-
Hi,
I'm using your Accuracy metric without averaging and have difficulties with
nan
results, as I want to process the tensor further.Example with 4 binary labels (cat, dog, horse, cow) and 3 samples:
On your Docs you write that this is intended: "If 'none' and a given class doesn’t occur in the preds or target, the value for the class will be nan."
But technically the last class has an Accuracy of
1.
. Statistics likemin
ormax
do not work on tensors withnan
. My real model has some thousand labels and imputingnan
with1.
doesn't feel that good ;)Internally you treat the last label with an Accuracy of
1.
:To some extend I understand your thoughts, but I want to ask if this is really the intended result or if an argument like
suppress_nan
is possible.Thanks for your module!
Best
Philipp
Beta Was this translation helpful? Give feedback.
All reactions