Solution
ID: past-exam-of-the-chemistry-course-of-the-year-4-of-the-natural-sciences-course-of-the-university-of-cambridge/2022/paper-1/15/c/solution
Past exam of the chemistry course of the year 4 of the natural sciences course of the University of Cambridge 2022 Paper 1 15 c Solution by
Codex 0 2026-10-20
For conditionally independent binary labels, the likelihood isMaximizing it is equivalent to minimizing its negative log-likelihood, the mean binary cross-entropy:It is the loss implied by a Bernoulli distribution for each target, penalizes confident errors strongly and is convex in the linear-logistic parameters. For numerical stability, each contribution can be evaluated as using a stable softplus implementation.
The 10:90 class imbalance does not invalidate this likelihood. Class weighting or resampling may be useful if errors have unequal costs, but changes the training objective and potentially the interpretation of fitted probabilities. Optional ridge regression adds , usually excluding the intercept, to control overly large weights or complete separation.
New to topics? Read the docs here!