Learning lesson 03 · Measure the miss
01 · Smallest useful mechanism
Accuracy says only whether the winning class was correct. Learning needs a graded signal. For a target class with predicted probability p, cross-entropy uses −log(p). Raising the target probability lowers the loss smoothly, while pushing it close to zero creates a large penalty. Averaging this quantity across examples gives the optimizer one declared objective.
Cross-entropy is small when the model assigns high probability to the observed class and grows sharply when it is confidently wrong.
02 · Experiment
Calculate by hand · cross-entropy curve
The probability slider produces an exact −log(p) value for one observed class and makes confidence-sensitive error visible.
Two-class teaching example
In this binary example the classes cross at 0.5. With three or more classes, the target can rank first below 0.5; the loss still reads its exact probability.
Cross-entropy curve
03 · Reason from evidence
Your brief: Explain why the result is possible and specify what must change in the evaluation contract before anyone calls the model better.
Evidence your answer should use
There is no reveal button here. A strong response names the claim, the evidence that would test it, and what the evidence cannot establish.
Your learning artifact
Stored only in this browser. No account required; course reset does not delete it.
04 · Check your understanding
Next: Once loss defines downhill, derivatives tell us which parameter movement is locally uphill.