Exam Certified Machine Learning Professional All QuestionsBrowse all questions from this exam
Question 47

A machine learning engineer wants to move their model version model_version for the MLflow Model Registry model model from the Staging stage to the Production stage using MLflow Client client.

Which of the following code blocks can they use to accomplish the task?

    Correct Answer: C

    To transition a model version from the Staging stage to the Production stage using the MLflow Client, the correct method to call is 'transition_model_version_stage' with the required parameters. These parameters include the name of the model, the version of the model, and the target stage, which in this case is 'Production'. The image in option C contains the correct code block for accomplishing this task.

Discussion
BokNinjaOption: C

Answer is C. # Transition the model version from Staging to Production client.transition_model_version_stage( name="model", version=model_version, stage="Production" )

hugodscarvalhoOption: C

Doc: https://mlflow.org/docs/latest/python_api/mlflow.client.html#mlflow.client.MlflowClient.transition_model_version_stage