NaN Jaccard When Negative Sampling #1414
Unanswered
vjsrinivas
asked this question in
CompVision
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.
-
Hello,
I've been trying to use the JaccardIndex on my binary segmentation task. It's been working as expected with data that contains the objects I'm segmenting. To improve robustness, I add negative samples to the mix. Since its negative sampling, I produce a prediction mask with all zeros and a ground truth with all zeros. When this happens, JaccardIndex outputs NaN (assuming its caused by 0/0).
Other metric packages seem to deal with it by outputting zero: drostlab/philentropy#15 (comment)
Is there a way to mimic this behavior?
Apologies if there was a similar topic. I searched for one and couldn't find any.
Beta Was this translation helpful? Give feedback.
All reactions