Please check the Sigmoid usage

I want to know how to use sigmoid output.

This is what I thought.
Anyone can check this?

Example

Sigmoid output:

tensor([[0.4361],
        [0.4571],
        [0.4319],
        [0.4922],
        [0.5832],
        [0.5590],
         ...
if output >= 0.5:
   result = '0'
else:
   result = '1'

Hi, what task are you assuming?
If you use sigmoid output as label confidence score (or sort of this),

  • using top-k outputs as estimated labels
    or
  • setting threshold t for discrimination ( as you set t = 0.5 )

are common usage, I guess. ( So, I mean your example is one of them. )