ML Methodology · Activity 5

Hyperparameter Search Game

You have a limited cross-validation budget. Find a good value of k for k-NN regression without evaluating every possible k.

Predict first: The CV error as a function of k can be bumpy. If k=8 looks better than k=4 and k=16, does that prove k=8 is the global optimum?

Hidden CV landscape

CV scores you have paid to evaluateFull curve, revealed only at the end

Final model

Training datak-NN regression fitted with all data