Please check the Sigmoid usage

I want to know how to use sigmoid output.

This is what I thought.
Anyone can check this?


Sigmoid output:

if output >= 0.5:
   result = '0'
   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
  • 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. )