exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 3 question 80 discussion

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

You plan to use the Hyperdrive feature of Azure Machine Learning to determine the optimal hyperparameter values when training a model.
You must use Hyperdrive to try combinations of the following hyperparameter values. You must not apply an early termination policy.
✑ learning_rate: any value between 0.001 and 0.1
✑ batch_size: 16, 32, or 64
You need to configure the sampling method for the Hyperdrive experiment.
Which two sampling methods can you use? Each correct answer is a complete solution.
NOTE: Each correct selection is worth one point.

  • A. No sampling
  • B. Grid sampling
  • C. Bayesian sampling
  • D. Random sampling
Show Suggested Answer Hide Answer
Suggested Answer: CD 🗳️

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
Abhinav_nasaiitkgp
Highly Voted 3 years, 10 months ago
Answer is correct as Grid Sampling doesn't support continuous hyperparameter configuration
upvoted 17 times
...
PremPatrick
Highly Voted 2 years ago
Selected Answer: CD
Correct!
upvoted 5 times
...
avinyc
Most Recent 4 months, 2 weeks ago
Selected Answer: BD
B. Grid sampling D. Random sampling Grid Sampling does not support continuous value but we can define a finely spaced range for learning rates and use that as hyperparameter learning_rate_values = np.linspace(0.001, 0.1, num=10).tolist()
upvoted 1 times
...
Mal42
1 year, 3 months ago
On exam 18 Aug 2023
upvoted 3 times
...
Peeking
1 year, 8 months ago
Selected Answer: AC
https://learn.microsoft.com/en-us/azure/machine-learning/v1/how-to-tune-hyperparameters-v1
upvoted 2 times
...
phdykd
1 year, 9 months ago
BD. Both Grid sampling and Random sampling can be used for configuring the sampling method for the Hyperdrive experiment. Grid sampling will allow you to define a search space with different combinations of hyperparameters, and it will train the model with every possible combination of hyperparameters. This approach works well when the search space is relatively small. Random sampling will randomly sample hyperparameters from the defined search space. This method can cover a larger search space more efficiently than grid sampling, and it can be useful when there are a large number of hyperparameters to tune. Bayesian sampling is not an option in this case, as it requires an early termination policy to be applied in order to determine which hyperparameters to explore next based on the results of previous runs. Since an early termination policy is not allowed in this scenario, Bayesian sampling is not a viable option
upvoted 3 times
deyoz
9 months, 3 weeks ago
baysian sampling doesn't have any policy parameter.
upvoted 1 times
...
...
striver
2 years, 5 months ago
CD is correct
upvoted 4 times
...
pancman
2 years, 7 months ago
The answer is correct. Grid sampling only supports discrete hyperparameters. Refer to this link in Microsoft documentation: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-tune-hyperparameters#grid-sampling
upvoted 2 times
...
synapse
2 years, 8 months ago
Selected Answer: AC
Bayesian and Default don't permit early termination. Random and Grid support early termination
upvoted 2 times
Arend78
1 year, 11 months ago
My guess is that "A. No sampling" is incorrect, since that would mean trying the infite of continuous values between between 0.001 and 0.1 for the learning rate
upvoted 1 times
...
...
wasthi
2 years, 11 months ago
Selected Answer: CD
Correct answers
upvoted 3 times
...
dataimage
2 years, 12 months ago
In my opinion, the answer is A C. we need to select the sampling which is not supporting early termination. Random and Grid both are supporting the early termination
upvoted 3 times
Roszu
2 years, 9 months ago
You clearly misinterpreted it, you cannot use early termination and on Random Sampling you don't have to use it.
upvoted 1 times
...
...
hargur
3 years, 1 month ago
on 19Oct2021
upvoted 2 times
...
kisskeo
3 years, 1 month ago
On Exam 01 Oct 2021
upvoted 1 times
...
Niz__
3 years, 2 months ago
Bayesian Sampling - https://docs.microsoft.com/en-us/python/api/azureml-train-core/azureml.train.hyperdrive.bayesianparametersampling?view=azure-ml-py#:~:text=Bayesian%20sampling%20does%20not%20support,leave%20off%20the%20early_termination_policy%20parameter. Random Sampling - https://docs.microsoft.com/en-us/azure/machine-learning/how-to-tune-hyperparameters#:~:text=Random%20sampling%20supports%20discrete%20and,termination%20of%20low%2Dperformance%20runs. Grid Sampling - https://docs.microsoft.com/en-us/azure/machine-learning/how-to-tune-hyperparameters#:~:text=Grid%20sampling,-Grid%20sampling%20supports&text=Supports%20early%20termination%20of%20low%2Dperformance%20runs.,-Grid%20sampling%20does Random and Grid Sampling supports early termination policy for low-performance runs in the documentations. A and C maybe?
upvoted 1 times
Niz__
3 years, 2 months ago
C and D is correct. You can set policy to NoTerminationPolicy
upvoted 3 times
...
...
RyanTsai
3 years, 2 months ago
the answer is B, D
upvoted 4 times
...
YipingRuan
3 years, 3 months ago
"Random sampling supports discrete and continuous hyperparameters. It supports early termination of low-performance runs."
upvoted 2 times
...
ac45863
3 years, 7 months ago
It's correct.
upvoted 4 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 ...