DP-100 · Question #418
You use Azure Machine Learning to train a model. You must use a sampling method for tuning hyperparameters. The sampling method must pick samples based on how the model performed with previous…
The correct answer is B. Bayesian. Bayesian sampling is the correct choice because it uses a probabilistic model (specifically a Gaussian process) to select the next set of hyperparameters based on how previous samples performed. It tries to pick values that are likely to improve the primary metric, making it an…
Question
Options
- AGrid
- BBayesian
- CRandom
How the community answered
(58 responses)- A3% (2)
- B88% (51)
- C9% (5)
Explanation
Bayesian sampling is the correct choice because it uses a probabilistic model (specifically a Gaussian process) to select the next set of hyperparameters based on how previous samples performed. It tries to pick values that are likely to improve the primary metric, making it an intelligent, iterative approach. Grid sampling exhaustively tries every combination of discrete values without learning from prior results. Random sampling selects values randomly from the search space and also does not consider past performance. Only Bayesian sampling adapts its choices based on previous trial outcomes, which is exactly what the requirement describes.
Topics
Community Discussion
No community discussion yet for this question.