QuestionQ21

VerifiedModel Deployment

A machine learning engineer has selected the best run from an MLflow Experiment. They stored its run ID in the run_id variable and determined that the logged model name is "model". They now want to register this model in the MLflow Model Registry under the name "best_model".

Which code line can they use to register the model associated with run_id in the MLflow Model Registry?

Explanation

MLflow registers a logged model by passing its model URI and the registered-model name to mlflow.register_model. A model logged at artifact path model for a run identified by run_id has the URI runs:/<run_id>/model, and best_model is the destination registered-model name.

Learn more

Community Discussion

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