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
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 by
Codex 0 2026-10-20
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 providesSubtracting 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!