Study FAQ
How do I choose random, grid, or Bayesian sampling for an Azure ML sweep?
Also asked as 2
- When is each Azure Machine Learning sweep sampling method useful?
- Which Azure ML sweep sampling strategy fits my parameter space and trial budget?
Answer
Use grid sampling for a small finite set whose combinations you can afford to evaluate. Use random sampling to explore a wider space of discrete and continuous values. Consider Bayesian sampling when each trial is costly and completed results can guide later choices. Azure Machine Learning documents choice, uniform, and quniform for Bayesian sampling.
Count discrete combinations when reviewing a grid. Three settings for one parameter and two for another give six combinations before any failures. With high concurrency, a Bayesian search can launch more trials before previous results are available, so consider the trade-off with elapsed time. Record the space actually explored and any budget limit before drawing conclusions.
Microsoft Learn
Full explanation
AI-300: Choosing and Comparing Training Experiments
Study guide · AI-300
Read the full explanation