Databricks Machine Learning Associate Question 54
Single answerYou are working on a Databricks notebook and have trained multiple machine learning models using the Databricks AutoML tool. You want to review the source code for the best model produced by AutoML to customize it further. How can you locate the source code for the best model?
- A
Navigate to the AutoML experiment run in the MLflow experiment UI and open the notebook generated for the best trial.
- B
Download the trained model artifact from the MLflow experiment UI and extract the source code from the artifact.
- C
Use the Databricks CLI to export the best model code from the AutoML output directory.
- D
Check the Databricks AutoML dashboard, where the source code for all models is displayed.
Show answer and explanation
Correct answer: A
Explanation
Databricks AutoML generates a notebook containing the source code for the best trial during the AutoML process. This notebook can be accessed from the MLflow experiment UI by navigating to the AutoML experiment run. This allows users to review and customize the source code as needed.
- A. Correct.
Correct. The source code for the best model produced by AutoML is stored in a generated notebook, which can be accessed through the MLflow experiment UI under the AutoML experiment run.
- B. Incorrect.
Incorrect. The trained model artifact contains the serialized model, not the source code. The source code is stored in the generated notebook.
- C. Incorrect.
Incorrect. The Databricks CLI does not provide functionality to directly export the best model's code from AutoML.
- D. Incorrect.
Incorrect. The AutoML dashboard provides insights and metrics but does not display the source code for the models.