
Answer-first summary for fast verification
Answer: Use the MLflow Client API to log the model as an artifact in an MLflow Run, and then register the model using the 'mlflow.register_model' function.
Option B is the correct approach as it utilizes the MLflow Client API to log the model as an artifact in an MLflow Run and then register the model using the 'mlflow.register_model' function. This approach allows for automation and integration with other tools and workflows. The Model Registry provides a centralized place to manage models, making it easier to track their versions, stages, and metadata. It also enables collaboration between data scientists and other stakeholders, as they can view, approve, and deploy models in a controlled manner.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are working on a project that requires registering models and managing their stages using MLflow's Model Registry. Explain how you would register a model using the MLflow Client API, and discuss the benefits of using the Model Registry for model management.
A
Use the MLflow UI to manually upload the model file and register it in the Model Registry.
B
Use the MLflow Client API to log the model as an artifact in an MLflow Run, and then register the model using the 'mlflow.register_model' function.
C
Manually create a new entry in the Model Registry and associate it with the model file stored in the MLflow tracking server.
D
Use the MLflow Client API to log the model as a metric in an MLflow Run, and then register the model using the 'mlflow.register_model' function.
No comments yet.