QuestionQ19

VerifiedAdvanced MLflow Usage

A machine learning engineer is migrating a machine learning pipeline to use Databricks Machine Learning. They have programmatically identified the best run from an MLflow Experiment and saved its URI in the model_uri variable and its Run ID in the run_id variable. They have also established that the model was logged under the name "model".

The machine learning engineer now wants to register that model in the MLflow Model Registry with the name "best_model".

Which of the following code lines can they use to register the model in the MLflow Model Registry?

Explanation

mlflow.register_model registers the model identified by its model URI under the supplied registered-model name. Providing model_uri as the source and "best_model" as the name creates a registered model or a new version under that name. The model URI must point to the logged model artifact; a run ID alone does not do so.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!