Keep the individual errors

Before you publish an average, keep the miss for each held-out transfer.

Before you publish an average, keep the miss for each held-out transfer. The list tells you which rows improved when you compare a second model.

Work through the example

Errors of 3 and 5 seconds average to 4. The larger miss is still 5 seconds.

Run the example as a separate Python file. The inputs are synthetic so you can change them and see exactly which assumption affects the result.

Run the example

from statistics import mean
errors = [abs(y - 3) for y in [6, 8]]
print(errors, mean(errors))

Expected output

[3, 5] 4

Reference: https://docs.python.org/3/library/statistics.html

The team guide · My original notes on testing coding agents · Working with Lightbulb Partners