
Answer-first summary for fast verification
Answer: Use MLflow to log and save the model artifacts, then share the MLflow run ID.
The recommended approach is to use MLflow to log and save the model artifacts, then share the MLflow run ID. This method is preferred because: - **A (CSV file):** Models are complex structures that cannot be effectively stored or shared as CSV files, which are more suited for data. - **B (MLflow run ID):** MLflow offers a standardized way to package models along with their metadata, metrics, and dependencies. Sharing the run ID allows the team member to easily retrieve and reproduce the model using MLflow tools. - **C (Pickled Python object):** While pickling is a common method in Python, it's not portable across different environments and may require additional context for the team member to use. - **D (Entire notebook):** Sharing the notebook provides the model code but doesn't ensure a ready-to-use environment, requiring the team member to install dependencies and configure settings. Thus, using MLflow and sharing the run ID is the most efficient, portable, and reproducible method for sharing models for evaluation.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In the context of a machine learning project within Databricks, a data scientist needs to share a trained model with a team member for further evaluation. Which method is recommended for packaging and sharing the model using MLflow?
A
Export the model as a CSV file.
B
Use MLflow to log and save the model artifacts, then share the MLflow run ID.
C
Save the model as a pickled Python object.
D
Share the entire Databricks notebook containing the model code.
No comments yet.