exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 4 question 67 discussion

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

You create an Azure Machine Learning workspace.

You must use the Python SDK v2 to implement an experiment from a Jupyter notebook in the workspace. The experiment must log a list of numeral metrics.

You need to implement a method to log a list of numeral metrics.

Which method should you use?

  • A. mlflow.log_metric()
  • B. mlflow.log.batch()
  • C. mlflow.log_image()
  • D. mlflow.log_artifact()
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
hbase
Highly Voted 1 year, 6 months ago
B. log_batch
upvoted 6 times
...
ferdcoz
Most Recent 3 months ago
Performance considerations: If you need to log multiple metrics (or multiple values for the same metric), avoid making calls to mlflow.log_metric in loops. Better performance can be achieved by using asynchronous logging with mlflow.log_metric("metric1", 9.42, synchronous=False) or by logging a batch of metrics https://learn.microsoft.com/en-us/azure/machine-learning/how-to-log-view-metrics?view=azureml-api-2&tabs=interactive#logging-metrics
upvoted 2 times
...
jefimija
5 months, 3 weeks ago
Selected Answer: A
list of numeric metrics isn't exactly a batch
upvoted 2 times
...
evangelist
11 months, 2 weeks ago
A is Correct!
upvoted 2 times
...
LMCloud1000
1 year ago
Selected Answer: B
Answer is B to Log a list of metrics. A would be for only logging 1 metric
upvoted 1 times
...
indomanish
1 year, 1 month ago
correct .CHTGPT :To log a list of numeral metrics in your Azure Machine Learning experiment using the Python SDK v2, you should use the following method: mlflow.log_metric(metric_name, metric_value): This method allows you to log a numerical value (such as accuracy, loss, or any other metric) to the run with the given name. The metric will be stored in the run record within the experiment.
upvoted 1 times
...
vv_bb
1 year, 5 months ago
Selected Answer: B
... log a list of numeric metrics .. The answer is B https://learn.microsoft.com/en-us/azure/machine-learning/how-to-log-view-metrics?view=azureml-api-2&tabs=interactive#logging-metrics
upvoted 2 times
...
damaldon
1 year, 9 months ago
Correct. https://learn.microsoft.com/en-us/azure/machine-learning/how-to-log-view-metrics?view=azureml-api-2&tabs=interactive#logging-metrics
upvoted 2 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