You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I saw, for binary classification the model.n_classes should be 2, As input of the args parameters in here shows that. But throughout the code, in several places like loss function initialization and loss calculation it is asumed to be 1 for binary classification. Maybe I am wrong. Could you let me know what is the reason? Is it a bug or is there any reason behind it? thanks in advance.
The text was updated successfully, but these errors were encountered:
Hi, it doesn't really matter if you use 1 or 2 classes for binary classification.
1 will use a single channel mask then sigmoid and threshold.
2 will use a 2-channels mask then argmax.
The losses for both are equivalent. CE with 2 classes is equivalent to BCE.
Hi,
As far as I saw, for binary classification the
model.n_classes
should be2
, As input of the args parameters in here shows that. But throughout the code, in several places like loss function initialization and loss calculation it is asumed to be1
for binary classification. Maybe I am wrong. Could you let me know what is the reason? Is it a bug or is there any reason behind it? thanks in advance.The text was updated successfully, but these errors were encountered: