DP-100 · Question #235
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might…
The correct answer is A. Yes. This solution meets the goal. In this series, the correct solution properly uses run.log('unique_labels', len(label_values)) (or equivalent) to log the count of unique label column values as a named metric in the experiment run context, and then calls run.complete() after the…
Question
Options
- AYes
- BNo
How the community answered
(47 responses)- A89% (42)
- B11% (5)
Explanation
This solution meets the goal. In this series, the correct solution properly uses run.log('unique_labels', len(label_values)) (or equivalent) to log the count of unique label column values as a named metric in the experiment run context, and then calls run.complete() after the logging statement. This ensures the metric is captured and accessible in the Azure ML studio experiment view. The key elements are: obtaining the run context via Run.get_context(), computing the desired value, logging it with run.log(), and completing the run - all in the correct order.
Topics
Community Discussion
No community discussion yet for this question.