Step-by-step answer
Stretch 45–60 min7 stepsRepair an overconfident model with temperature scaling
Temperature scaling for yes/no probabilities, fitted by golden-section search over log T on a calibration split and graded on a separate test split. On a simulated model with overconfidence k = 2 it fits T = 1.899 and cuts test ECE from 0.113 to 0.031, with accuracy unchanged at 0.740.
Back to the exercise