
Explanation:
Correct Answer: D. It adds a new version of the 'model_name' model to the MLflow Model Registry.
Explanation:
The registered_model_name=model_name argument in the mlflow.sklearn.log_model function specifies that the logged model should be registered under the given model name in the MLflow Model Registry. If 'model_name' already exists in the registry, this code will automatically register a new version of that model. This is especially useful for automating model updates and versioning in machine learning pipelines.
Why Not the Others?
mlflow.register_model call; it's about automatic version registration.registered_model_name is unrelated to Run names in experiments; it's specifically for model registration in the Registry.In summary, registered_model_name=model_name in mlflow.sklearn.log_model is used for automatically registering a new version of an existing model in the MLflow Model Registry, facilitating efficient model version management in development and deployment workflows.
Ultimate access to all questions.
A machine learning engineer is enhancing a project to automatically refresh the model each time the project runs. The project is connected to an existing model named 'model_name' in the MLflow Model Registry. The following code snippet is part of their strategy:
mlflow.sklearn.log_model(sk_model=model, artifact_path="model", registered_model_name=model_name)
mlflow.sklearn.log_model(sk_model=model, artifact_path="model", registered_model_name=model_name)
Given that 'model_name' is already present in the MLflow Model Registry, what does the parameter registered_model_name=model_name signify?
A
It removes the need to specify the model name in a subsequent mandatory call to mlflow.register_model.
B
It logs a new model under the title 'model_name' in the MLflow Model Registry.
C
It signifies the name of the logged model within the MLflow Experiment.
D
It adds a new version of the 'model_name' model to the MLflow Model Registry.
E
It indicates the name of the Run in the MLflow Experiment.
No comments yet.