Confusing behaviour for AsDiscrete transform #8518
Replies: 1 comment 1 reply
-
|
The current implementation of This can be a bit counterintuitive when using Conceptually, it might be clearer to think of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
There is something confusing with the transform
AsDiscrete. In the following example, I have a batch of two predicted probabilities[0.3, 0.9]; so with a threshold set to0.5, the elements of the batch should be mapped to the class0and1respectively. This is what I expected to obtain withAsDiscrete:But I get:
This fixes the issue:
But still, I find this behaviour very confusing. Does someone have an explanation to justify it?
PS: I'm using MONAI 1.5.0
Beta Was this translation helpful? Give feedback.
All reactions