exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 4 question 60 discussion

Actual exam question from Microsoft's DP-100
Question #: 60
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 string metrics.

You need to implement the method to log the string metrics.

Which method should you use?

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

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
Ben999
5 months, 2 weeks ago
Selected Answer: A
MLflow is primarily used to log numerical metrics. However, you can log string data as a parameter - mlflow.log_param(), or an artifact if string is too long or to safe as a file - mlfow.log_artifact
upvoted 1 times
...
gunn_m
6 months, 3 weeks ago
Selected Answer: C
C is correct, becase D is to Log text in a text file and the question does not tals about text file. Log text in a text file mlflow.log_text("text string", "notes.txt") Text is persisted inside of the run in a text file with name notes.txt. https://learn.microsoft.com/en-us/azure/machine-learning/how-to-log-view-metrics?view=azureml-api-2&tabs=interactive#logging-metrics
upvoted 1 times
...
damaldon
1 year, 11 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 ...