exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 3 question 61 discussion

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

HOTSPOT -
You are running Python code interactively in a Conda environment. The environment includes all required Azure Machine Learning SDK and MLflow packages.
You must use MLflow to log metrics in an Azure Machine Learning experiment named mlflow-experiment.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: mlflow.set_tracking_uri(ws.get_mlflow_tracking_uri())
In the following code, the get_mlflow_tracking_uri() method assigns a unique tracking URI address to the workspace, ws, and set_tracking_uri() points the MLflow tracking URI to that address. mlflow.set_tracking_uri(ws.get_mlflow_tracking_uri())
Box 2: mlflow.set_experiment(experiment_name)
Set the MLflow experiment name with set_experiment() and start your training run with start_run().
Box 3: mlflow.start_run()

Box 4: mlflow.log_metric -
Then use log_metric() to activate the MLflow logging API and begin logging your training run metrics.
Reference:
https://docs.microsoft.com/en-us/azure/machine-learning/how-to-use-mlflow

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
ljljljlj
Highly Voted 2 years, 6 months ago
On exam 2021/7/10
upvoted 6 times
...
MattAnya
Most Recent 1 year ago
on 03 Jan2023
upvoted 4 times
...
hargur
2 years, 2 months ago
on 19Oct2021
upvoted 2 times
...
snsnsnsn
2 years, 4 months ago
Not exactly but similar question on 2/9/21
upvoted 2 times
...
VJPrakash
2 years, 5 months ago
on exam in August 2021
upvoted 4 times
...
datamijn
2 years, 5 months ago
on exam 2/8/2021
upvoted 3 times
...
MohsenSic
2 years, 6 months ago
Anybody knows why run.log is wrong in the last box, we have this example from MS run.log('n_estimators', np.int(args.n_estimators)), so , run.log () is fine as well
upvoted 1 times
trickerk
2 years, 6 months ago
https://docs.microsoft.com/en-us/azure/machine-learning/how-to-use-mlflow import mlflow with mlflow.start_run(): mlflow.log_metric('example', 1.23)
upvoted 2 times
...
...
rishi_ram
2 years, 7 months ago
Answer is correct though there is some syntax error in the question itself anyway answer would be same as mentioned.
upvoted 3 times
...
joysail
2 years, 8 months ago
box 2 - set with experiment name
upvoted 1 times
...
dev2dev
2 years, 10 months ago
syntax error in box 2. correct systax ends with colon with mlflow.start_run():
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 ...