Solution

ID: past-exam-of-the-chemistry-course-of-the-year-4-of-the-natural-sciences-course-of-the-university-of-cambridge/2022/paper-3/section-f/47/c/solution

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.

New to topics? Read the docs here!