For mutually exclusive classes, the output layer should provide nonnegative probabilities summing to one, with labels aligned consistently to output coordinates. A softmax activation on logits provides
Subtracting from all logits before exponentiation preserves these probabilities and prevents numerical overflow. Categorical cross-entropy is appropriate for one-hot or probabilistic class targets. Independent sigmoid outputs fit a different setting in which multiple labels can be present simultaneously and their probabilities need not sum to one.

Articles by others on the same topic (0)

There are currently no matching articles.