lattice:

Since it is a binary classification problem, it is necessary to return a class of 0 or 1 using cutoff 0.5 or another value, but wouldn’t it only be a class of 1 if 0.0 is used?


Logits are unbound and can contain values in [-Inf, +Inf] where low values represent class0 and high values represent class1. In the default setup, the cutoff would thus be 0.0, which maps to a probability of 0.5 in case you are working with probabilities in the range [0, 1].