AI & ML Atlas
Machine LearningtechniqueInteractive simulation
Random Search
Samples hyper-parameter settings at random instead of on a grid.
The idea
Often only a few hyper-parameters really matter. A grid repeats the same few values of the important one many times, while random sampling tries a new value every time, so it explores the important dimensions much more thoroughly for the same budget.
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
Random search: try settings picked at random. Two hyper-parameters are the two axes.
1/25
Dark spots on the map are poor settings; bright spots are good. One of the peaks is the tallest.
Step by step
- 1Define a distribution for each hyper-parameter.
- 2Draw a random combination.
- 3Train and evaluate it.
- 4Repeat for a fixed budget and keep the best.
Where it is used
A strong default for tuning with many hyper-parameters.
Watch out for
It does not learn from earlier trials; Bayesian optimisation does.