Compare a baseline on a later transfer
Fit on earlier transfers and test on a later one.
Fit on earlier transfers and test on a later one. Record the time boundary before choosing a model. Keep the later answer out of the training mean.
Work through the example
Early times of 2 and 4 give a prediction of 3 seconds. The next transfer takes 8, so the miss is 5.
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
train = [2, 4]
new_time = 8
print(mean(train), abs(new_time-mean(train)))
Expected output
3 5
Reference: https://scikit-learn.org/stable/modules/model_evaluation.html
The team guide · My original notes on testing coding agents · Working with Lightbulb Partners