Designing and Implementing a Data Science Solution on Azure — Question 77
You are implementing hyperparameter tuning for a model training from a notebook. The notebook is in an Azure Machine Learning workspace.
You must configure a grid sampling method over the search space for the num_hidden_layers and batch_size hyperparameters.
You need to identify the hyperparameters for the grid sampling.
Which hyperparameter sampling approach should you use?
Answer options
- A. uniform
- B. qlognormal
- C. choice
- D. normal
Correct answer: C
Explanation
The correct answer is 'C' because grid sampling requires a predefined set of values to choose from, which is provided by the 'choice' hyperparameter sampling method. The other options like 'uniform', 'qlognormal', and 'normal' are continuous sampling methods and do not fit the requirements for grid sampling.