I've created a neural network with a sigmoid activation function in the last layer, so I get results between 0 and 1. I want to classify things in 2 classes, so I check "is the number > 0.5, then class 1 else class 0". All basic.
However, I would like to say "the probability of it being in class 0 is x
and in class 1 is y
".
How can I do this?
- Does a number like 0.73 tell me it's 73% sure to be in class 1? And then 1-0.73 = 0.27 so 27% in class 0?
- When it's 0.27, does that mean it's 27% sure in class 0, 73% in class 1? Makes no sense.
Should I work with the 0.5 and look "how far away from the center is the number, and then that's the percentage"?
Or am I misunderstanding the result of the NN?