Databricks Machine Learning Associate Question 119
Single answerYou have trained a machine learning model using Databricks and logged the training run using MLflow. You want to review the specific code used in the run. How can you locate the code that was executed for this run in the MLflow UI?
- A
Navigate to the 'Artifacts' tab of the run and look for a file containing the source code.
- B
Go to the 'Source' column in the MLflow runs table and click the linked file path.
- C
Open the 'Code' tab within the MLflow UI and review the code snapshot.
- D
In the 'Run Details' page, locate the 'Source Name' field which provides information about the source code.
Show answer and explanation
Correct answer: D
Explanation
In MLflow, the 'Source Name' field on the 'Run Details' page indicates the exact source (e.g., notebook or script) that was used for the run. This allows you to identify the code location. Other options either refer to unrelated tabs or do not exist in the MLflow UI.
- A. Incorrect.
The 'Artifacts' tab contains files logged as artifacts during the run, such as model files or additional outputs, but it does not directly provide the source code associated with the run.
- B. Incorrect.
The 'Source' column in the MLflow runs table provides a file path or notebook path, but it is not clickable and does not directly display the source code.
- C. Incorrect.
There is no 'Code' tab in the MLflow UI. This is incorrect functionality that does not exist in MLflow.
- D. Correct.
The 'Source Name' field in the 'Run Details' page provides the location (e.g., a notebook path or script name) of the source code used during the run.