Valid Databricks-Machine-Learning-Professional Dumps shared by ExamDiscuss.com for Helping Passing Databricks-Machine-Learning-Professional Exam! ExamDiscuss.com now offer the newest Databricks-Machine-Learning-Professional exam dumps, the ExamDiscuss.com Databricks-Machine-Learning-Professional exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com Databricks-Machine-Learning-Professional dumps with Test Engine here:
A data scientist is utilizing MLflow to track their machine learning experiments. After completing a run with run ID run_id for the experiment with experiment ID exp_id, the data scientist wants to programmatically return the logged metrics for run_id. They have an active MLflow Client client and an active Spark session spark. Which lines of code can be used to return the logged metrics for run_id?
Correct Answer: C
The correct way to retrieve logged metrics for a specific run using the MLflow Client is client.get_run(run_id).data.metrics. This returns a dictionary of all metrics logged for that run. The method in the image (mlflow.search_runs(...)) is for querying across multiple runs, not for accessing a specific run's metrics.