Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam DP-100 topic 3 question 79 discussion

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

You run an experiment that uses an AutoMLConfig class to define an automated machine learning task with a maximum of ten model training iterations. The task will attempt to find the best performing model based on a metric named accuracy.
You submit the experiment with the following code:

You need to create Python code that returns the best model that is generated by the automated machine learning task.
Which code segment should you use?

  • A. best_model = automl_run.get_details()
  • B. best_model = automl_run.get_metrics()
  • C. best_model = automl_run.get_file_names()[1]
  • D. best_model = automl_run.get_output()[1]
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
The get_output method returns the best run and the fitted model.
Reference:
https://notebooks.azure.com/azureml/projects/azureml-getting-started/html/how-to-use-azureml/automated-machine-learning/classification/auto-ml- classification.ipynb

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
l2azure
Highly Voted 3 years ago
answer is indeed D best_run, fitted_model = run.get_output() have a look at the documentation for configuring autoML using the python SDK https://docs.microsoft.com/en-us/azure/machine-learning/how-to-configure-auto-train
upvoted 20 times
...
kty
Highly Voted 3 years, 1 month ago
the answer is correct : 'D' If no input parameters are provided, get_output returns the best pipeline according to the primary metric. best_run, model = parent_run.get_output()
upvoted 6 times
...
Peeking
Most Recent 1 year, 2 months ago
D is the closest answer but What of: run.get_output()[0]?
upvoted 2 times
...
synapse
2 years, 1 month ago
Selected Answer: D
answer d is correct
upvoted 1 times
...
dija123
2 years, 4 months ago
Selected Answer: D
Answer is D
upvoted 2 times
...
Jingking
2 years, 5 months ago
answer is D
upvoted 1 times
...
hargur
2 years, 6 months ago
on 19Oct2021
upvoted 2 times
...
kisskeo
2 years, 6 months ago
On Exam 01 Oct 2021
upvoted 1 times
...
trickerk
2 years, 9 months ago
Given answer is correct: D. According https://docs.microsoft.com/en-us/python/api/azureml-train-automl-client/azureml.train.automl.run.automlrun?view=azure-ml-py: best_run, model = parent_run.get_output() The first item (index 0) of get_output() method list is the "best run" and the second (index 1) is the "model". Question is asking for model.
upvoted 5 times
...
ljljljlj
2 years, 9 months ago
On exam 2021/7/10
upvoted 3 times
...
ACSC
3 years ago
We can access the best run id and accuracy score with: automl_run_metrics = automl_run.get_metrics() https://github.com/elenacramer/Optimizing-an-ML-Pipeline-in-Azure Answer is B
upvoted 2 times
scipio
2 years, 11 months ago
B is worng! get_metrics() is a method of a run object, you need that first: best_run, fitted_model = automl_run.get_output() Then you can do best_run.get_metrics()
upvoted 4 times
...
...
BilJon
3 years ago
# Get the best run, and its metrics and arguments best_run = run.get_best_run_by_primary_metric() best_run_metrics = best_run.get_metrics() script_arguments = best_run.get_details() ['runDefinition']['arguments'] print('Best Run Id: ', best_run.id) print(' -AUC:', best_run_metrics['AUC']) print(' -Accuracy:', best_run_metrics['Accuracy']) print(' -Arguments:',script_arguments)
upvoted 1 times
...
mans00767
3 years, 1 month ago
I think answer is B as get_metric get best model D is wrong as get_output()[1] no get_output()[0] Reference https://docs.microsoft.com/en-us/python/api/azureml-train-automl-client/azureml.train.automl.run.automlrun?view=azure-ml-py
upvoted 4 times
...
mans00767
3 years, 1 month ago
I think answer is B as get_metric get best model D is wrong as get_output()[1] no get_output()[0]
upvoted 1 times
dev2dev
3 years, 1 month ago
automl run class doesnt have method get_metric. given answer is correct. get_output() returns array
upvoted 6 times
...
...
Mpalo
3 years, 1 month ago
Reference link does not work
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 ...