Patrice:

Am I supposed to apply a threshold to the target before feeding into the network?


Usually not, but I might misunderstand your use case.
Do you want to apply a threshold to the target or your model outputs?
The latter case would make sense, while I’m not sure about the former one.