Compare two models at equal validation loss

Check signs and decimal points before moving to the next value. · 156 words

Validation loss averages penalties on held-out examples. Two models can tie while making different mistakes. Suppose a museum app predicts early exhibit closures. Models A and B both have validation log loss 0.30, which penalizes confident wrong probabilities. On 100 validation days, 20 had closures. Model A has 12 true positives (correct closures), 8 false negatives (missed closures), 8 false positives (unneeded alerts), and 72 true negatives. Model B has 12 true positives, 8 false negatives, 20 false positives, and 60 true negatives.

Choose costs before breaking the tie. If each missed closure costs $100 and each false alert costs $10, A costs 8*$100 + 8*$10 = $880, while B costs 8*$100 + 20*$10 = $1,000. A is therefore $120 cheaper for this period. Equal validation loss means equal primary score, not equal usefulness. Other fair tie-breakers include calibration (whether predicted probabilities match observed frequencies), alert latency, and computing cost. Validation days should resemble normal operation.

Check your recall

Both models have validation loss 0.30. Under the stated alert costs, which model is cheaper, and by how much?

Check your answer

Model A is cheaper. Its cost is $880, compared with $1,000 for Model B, so Model A costs $120 less over the 100 validation days.

Sources and credits

Original KeyTouch lesson. Background reading · Google · Linear regression.