You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 like min or max do not work on tensors with nan. My real model has some thousand labels and imputing nan with 1. 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!
This discussion was converted from issue #483 on September 30, 2021 18:20.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Discussed in #466
Originally posted by phiyodr August 19, 2021
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