Part 09 / Topic 3 of 6
Loss functions
- MSE for regression: average squared miss.
- Cross-entropy for classification: negative log probability of the true class — exactly the log-loss from Part 4, generalised to many classes via softmax.
A number worth memorising: with two classes and the model completely unsure (equal logits), cross-entropy is ln 2 ≈ 0.693 — verified in this repo's environment. A classifier whose loss starts near 0.693 (or ln k for k classes) is starting from honest ignorance; one that starts far above it is badly initialised.
🧪 Quick quiz
- Which loss suits multi-class classification?
Show the answer
Cross-entropy — with two equal logits it equals ln 2 ≈ 0.693, the "completely unsure" value.
Done here? The practice set for Part 9 — 4 exercises with solutions — is on the part page.