Confusing behaviour for AsDiscrete transform #8518
thibaultdvx
started this conversation in
General
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 |
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.
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
All reactions