exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 3 question 142 discussion

Actual exam question from Microsoft's DP-100
Question #: 142
Topic #: 3
[All DP-100 Questions]

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?

  • A. uniform
  • B. qlognormal
  • C. choice
  • D. normal
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
avotofu
Highly Voted 1 year, 9 months ago
answer is c.choice
upvoted 6 times
...
kay1101
Most Recent 8 months, 1 week ago
Selected Answer: C
Grid sampling can only be used with choice hyperparameters. Reference: https://learn.microsoft.com/en-us/azure/machine-learning/how-to-tune-hyperparameters?view=azureml-api-2#grid-sampling
upvoted 1 times
...
bobML
1 year, 4 months ago
C For configuring a grid sampling method over the search space for hyperparameters like num_hidden_layers and batch_size, you should use the "choice" hyperparameter sampling approach. The "choice" sampling approach allows you to specify a list of discrete values from which the hyperparameter tuning process will select combinations. In your case, you would provide a list of possible values for num_hidden_layers and batch_size, and the grid search would consider all combinations of these values. So, the correct option is: C. choice
upvoted 4 times
...
BR_CS
1 year, 5 months ago
Selected Answer: C
Choice
upvoted 1 times
...
abcd9999
1 year, 6 months ago
Selected Answer: C
from azureml.train.hyperdrive import choice, GridParameterSampling param_sampling = GridParameterSampling({ 'num_hidden_layers': choice([16, 32, 64]), 'batch_size': choice([32, 64, 128]) })
upvoted 1 times
...
phdykd
1 year, 6 months ago
c) Choice https://learn.microsoft.com/en-us/python/api/azureml-train-core/azureml.train.hyperdrive.gridparametersampling?view=azure-ml-py
upvoted 1 times
...
mfcanseco
1 year, 7 months ago
Selected Answer: C
Grid sampling does a simple grid search over all possible values. Grid sampling can only be used with choice hyperparameters. For example, the following space has six samples:
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...