WRITE · TRACE · UNDERSTAND
Measure probability error instead of only decisions
Implement brier(labels,probabilities), validating equal nonempty sequences, binary integer labels and finite probabilities in [0,1].
Read lesson: Measure probability error instead of only decisions →
Your experiment
Implement brier(labels,probabilities), validating equal nonempty sequences, binary integer labels and finite probabilities in [0,1]. Return mean squared probability error.
Python runs in your browser. Your draft stays on this device.
What to look for
A proper scoring rule rewards truthful probabilities in expectation, but finite test scores still have uncertainty. Use held-out calibration data and avoid choosing a calibrator on the final test set.
Watch your code work
Ready to experimentWrite a solution or load the worked answer, then choose Trace & check.
Step through arrays, variables and training curves produced by your own Python.
