AI & ML Atlas
Machine LearningtechniqueInteractive simulation
Grid Search
Tries every combination from a fixed grid of hyper-parameter values.
The idea
List a few candidate values for each hyper-parameter and evaluate every combination, usually with cross-validation. It is simple, exhaustive and reproducible, but the number of runs multiplies with each extra parameter.
Watch it run
This is a real computation, not a drawing. Pause, step, change the settings, or try new random data.
- tried
- best so far
Grid search: try every point of an evenly spaced grid.
1/26
Dark spots on the map are poor settings; bright spots are good. One of the peaks is the tallest.
Step by step
- 1Choose the parameters and a set of values for each.
- 2For each combination, train and cross-validate.
- 3Record the scores.
- 4Pick the best combination.
Where it is used
Tuning models with only two or three hyper-parameters.
Watch out for
Wastes effort on unimportant parameters; cost grows exponentially.