Grid search vs random search for hyperparameter tuning — which do you use?
easy- Random search almost always beats grid search when you have more than 2-3 hyperparameters.
- Reason: most hyperparameters have few impactful settings; grid search wastes budget on irrelevant dimensions.
- Random search covers more diverse combinations for the same number of trials (Bergstra & Bengio, 2012).
- Use grid only for cheap, low-dim tuning (2-3 params, coarse grid) or as a final refinement around a random-search winner.
- For real budget, Bayesian optimization / Optuna beats both.
#hyperparameter-tuningPermalink & quiz →