ptrblck:

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.


From your explanation, I think that the threshold should be applied to the model outputs instead.
Please, how should it be done?
In the mean time I had tried to apply a threshold to the target before feeding into the network (this could be seen as a data preprocessing step). I did it with the following lines of code
label  = np.asarray(label)
    label = label.reshape(128, 128, 128)
    label = np.where(label > 0.5, 1, 0)

Please, I would like to know which one is logical and more appropriate. I would also like to know the reasons
Really appreciate