Searching for a Setting

Many model settings must be chosen before fitting. We need a fair way to compare those choices using training and validation data, while keeping the final test separate from the decision.

15 sections · 15 questions · 4 coding challenges

1 / 15

Who Chooses the Settings the Model Does Not Learn?

BOTIE

A training procedure may learn coefficients while leaving us to choose the penalty strength or maximum tree depth. Different choices can produce different models from the same observations. We need a repeatable way to compare them.

Grid search became a common experimental approach: specify candidate values and evaluate their combinations. Bergstra and Bengio's 2012 study used it as an established baseline and showed why it could spend evaluations inefficiently. Some settings matter much more than others, yet a grid repeats the same small set of values along each direction.

The appeal is still easy to understand. A small grid states exactly which possibilities we tried and compares them under a shared evaluation procedure. The best result is the best among those tested, not proof of a global optimum. This lesson starts with that explicit search before considering its cost and alternatives.

Sources for this history