exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 7 question 12 discussion

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

DRAG DROP -
You need to implement early stopping criteria as stated in the model training requirements.
Which three code segments should you use to develop the solution? To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order.
NOTE: More than one order of answer choices is correct. You will receive the credit for any of the correct orders you select.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Step 1: from azureml.train.hyperdrive
Step 2: Import TruncationCelectionPolicy
Truncation selection cancels a given percentage of lowest performing runs at each evaluation interval. Runs are compared based on their performance on the primary metric and the lowest X% are terminated.
Scenario: You must configure hyperparameters in the model learning process to speed the learning phase. In addition, this configuration should cancel the lowest performing runs at each evaluation interval, thereby directing effort and resources towards models that are more likely to be successful.
Step 3: early_terminiation_policy = TruncationSelectionPolicy..
Example:
from azureml.train.hyperdrive import TruncationSelectionPolicy early_termination_policy = TruncationSelectionPolicy(evaluation_interval=1, truncation_percentage=20, delay_evaluation=5)
In this example, the early termination policy is applied at every interval starting at evaluation interval 5. A run will be terminated at interval 5 if its performance at interval 5 is in the lowest 20% of performance of all runs at interval 5.
Incorrect Answers:
Median:
Median stopping is an early termination policy based on running averages of primary metrics reported by the runs. This policy computes running averages across all training runs and terminates runs whose performance is worse than the median of the running averages.
Slack:
Bandit is a termination policy based on slack factor/slack amount and evaluation interval. The policy early terminates any runs where the primary metric is not within the specified slack factor / slack amount with respect to the best performing training run.
Reference:
https://docs.microsoft.com/en-us/azure/machine-learning/service/how-to-tune-hyperparameters

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
yobllip
Highly Voted 2 years, 9 months ago
The case study is about cancel the lowest performing runs at each evaluation interval (Hyperparameters). So, using "Truncation selection policy" is correct answer
upvoted 5 times
...
james2033
Most Recent 6 months ago
Question's keyword "Therefore, must implement an early stopping criterion on models that provides savings without terminating promising jobs." So choose 2nd block what is "TruncationSelectionPolicy" .
upvoted 1 times
...
phdykd
1 year, 1 month ago
In this case, the Bandit policy would be the more appropriate selection. The Bandit policy is designed to balance exploration (trying out different hyperparameters) and exploitation (using the best hyperparameters found so far) while taking into account the efficiency of resource utilization. The Bandit policy is suitable when there are limited computational resources available and when there is a need to terminate low-performing runs early.
upvoted 2 times
...
synapse
2 years ago
Super long question for a simple problem. All you need to know is this: You must configure hyperparameters in the model learning process to speed the learning phase. In addition, this configuration should cancel the lowest performing runs at each evaluation interval, thereby directing effort and resources towards models that are more likely to be successful. You are concerned that the model might not efficiently use compute resources in hyperparameter tuning. You also are concerned that the model might prevent an increase in the overall tuning time. Therefore, must implement an early stopping criterion on models that provides savings without terminating promising jobs. Answer: Selection Truncation policy. As delay_evaluation is already set in all 3 answers, that's not a factor.
upvoted 1 times
...
hargur
2 years, 6 months ago
has anyone seen such question recently in exam
upvoted 1 times
...
Lucario95
2 years, 11 months ago
I agree with medianStopping as referred to the answer's link
upvoted 1 times
...
saurabhk1
3 years, 1 month ago
I think, the policy should be the MedianTerminationPolicy, For a conservative policy that provides savings without terminating promising jobs, consider a Median Stopping Policy with evaluation_interval 1 and delay_evaluation 5. These are conservative settings, that can provide approximately 25%-35% savings with no loss on primary metric (based on our evaluation data).
upvoted 4 times
audun
2 years ago
the question states that "NOTE: More than one order of answer choices is correct. " so that can be true simulatenous with TruncationSelectionPolicy
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago