DP-100 · Question #435
You manage an Azure Machine Learning workspace. You must log multiple metrics by using MLflow. You need to maximize logging performance. What are two possible ways to achieve this goal? Each correct…
The correct answer is A. MLflowClient.log_batch B. mlflow.log_metrics. 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 logging batch of metrics. Use the method mlflow.log_metrics which accepts a…
Question
Options
- AMLflowClient.log_batch
- Bmlflow.log_metrics
- Cmlflow.log_metric
- Dmlflow.log_param
How the community answered
(37 responses)- A89% (33)
- C3% (1)
- D8% (3)
Explanation
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 logging batch of metrics. Use the method mlflow.log_metrics which accepts a dictionary with all the metrics you want to log at once or use MLflowClient.log_batch which accepts multiple type of elements for logging. https://learn.microsoft.com/en-us/azure/machine-learning/how-to-log-view-metrics?view=azureml- api-2&tabs=interactive
Topics
Community Discussion
No community discussion yet for this question.