exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 3 question 27 discussion

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

You create a multi-class image classification deep learning model that uses the PyTorch deep learning framework.
You must configure Azure Machine Learning Hyperdrive to optimize the hyperparameters for the classification model.
You need to define a primary metric to determine the hyperparameter values that result in the model with the best accuracy score.
Which three actions must you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  • A. Set the primary_metric_goal of the estimator used to run the bird_classifier_train.py script to maximize.
  • B. Add code to the bird_classifier_train.py script to calculate the validation loss of the model and log it as a float value with the key loss.
  • C. Set the primary_metric_goal of the estimator used to run the bird_classifier_train.py script to minimize.
  • D. Set the primary_metric_name of the estimator used to run the bird_classifier_train.py script to accuracy.
  • E. Set the primary_metric_name of the estimator used to run the bird_classifier_train.py script to loss.
  • F. Add code to the bird_classifier_train.py script to calculate the validation accuracy of the model and log it as a float value with the key accuracy.
Show Suggested Answer Hide Answer
Suggested Answer: ADF 🗳️

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
Arend78
Highly Voted 1 year, 10 months ago
The primary_metric_goal=PrimaryMetricGoal.MAXIMIZE notation is depricated (v1): https://learn.microsoft.com/nl-nl/azure/machine-learning/v1/how-to-tune-hyperparameters-v1 (DEPRICATED) Please use ```sweep_job = command_job_for_sweep.sweep( compute="cpu-cluster", sampling_algorithm = "bayesian", primary_metric="accuracy", goal="Maximize", # !!! ) https://learn.microsoft.com/en-us/azure/machine-learning/how-to-tune-hyperparameters
upvoted 6 times
...
evangelist
Most Recent 5 months ago
Selected Answer: ADF
given answers are correct
upvoted 2 times
...
fhlos
1 year, 4 months ago
Selected Answer: ADF
ADF - ChatGPT
upvoted 2 times
...
esimsek
1 year, 7 months ago
Selected Answer: ADF
ADF are correct
upvoted 3 times
...
Mirjalol
1 year, 9 months ago
Why A and C answers are the same?
upvoted 1 times
Mirjalol
1 year, 9 months ago
Sorry , one is maximize, the other one is minimize
upvoted 1 times
...
...
Thornehead
2 years, 7 months ago
Selected Answer: ADF
ADF are the correct answers.
upvoted 2 times
...
chaudha4
3 years, 6 months ago
Why not BCE ?
upvoted 1 times
skrangan
3 years, 6 months ago
It is Classification model. Hence we depend it on Accuracy
upvoted 3 times
...
lakito
3 years, 4 months ago
The question itself says "accuracy", not "loss".
upvoted 3 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