Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft Exam DP-100 Topic 10 Question 26 Discussion

Actual exam question for Microsoft's DP-100 exam
Question #: 26
Topic #: 10
[All DP-100 Questions]

You need to record the row count as a metric named row_count that can be returned using the get_metrics method of the Run object after the experiment run completes. Which code should you use?

Show Suggested Answer Hide Answer
Suggested Answer: B

Log a numerical or string value to the run with the given name using log(name, value, description=''). Logging a metric to a run causes that metric to be stored in the run record in the experiment. You can log the same metric multiple times within a run, the result being considered a vector of that metric.

Example: run.log('accuracy', 0.95)

Incorrect Answers:

E: Using log_row(name, description=None, **kwargs) creates a metric with multiple columns as described in kwargs. Each named parameter generates a column with the value specified. log_row can be called once to log an arbitrary tuple, or multiple times in a loop to generate a complete table.

Example: run.log_row('Y over X', x=1, y=0.4)


https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.core.run

Contribute your Thoughts:

Clarinda
6 days ago
I thought we could only log tables, not individual metrics.
upvoted 0 times
...
Tran
12 days ago
C and D don't seem appropriate for this use case.
upvoted 0 times
...
Olene
17 days ago
Wait, can you really log a row count like that? Seems odd.
upvoted 0 times
...
Amie
22 days ago
Definitely agree with B, it makes the most sense!
upvoted 0 times
...
Laura
27 days ago
I think option B is the right choice for logging metrics.
upvoted 0 times
...
Brittney
29 days ago
I think uploading a file isn't the right approach for this question. So, I can rule out option A.
upvoted 0 times
...
Floyd
29 days ago
I'm not entirely sure, but I feel like we practiced something similar where we had to log a metric. Was it log_table or log_row?
upvoted 0 times
...
Princess
30 days ago
I remember that logging metrics is usually done with the log method, so I think option B might be correct.
upvoted 0 times
...
Pearline
1 months ago
I have a vague memory of using tags for something else, but I don't think that's what we need here. So, maybe it's not option C.
upvoted 0 times
...
Justine
1 months ago
Replacing the SSL Certificates at the Objects store level doesn't seem relevant to the problem described. That's probably not the right action to take.
upvoted 0 times
...
Talia
1 months ago
This is a tricky one. I'll need to think carefully about the social and economic consequences of money laundering.
upvoted 0 times
...

Save Cancel