Registering existing models
In this exercise, you will take two existing MLflow Models and register them to the MLflow Model Registry to begin managing the lifecycle of both models. Each of these models was trained using the "Insurance" data at a previous date to predict if an insurance claim was for a male or female.
The first model can be found in the local directory "model_2022" and was never logged to MLflow Tracking. The second model was logged to MLflow Tracking under the artifact URI of "model_2023". Its run_id attribute has been saved as a variable named "run_id".
The mlflow module will be imported.
Deze oefening maakt deel uit van de cursus
Introduction to MLflow
Oefeninstructies
- Register the first model in directory
model_2022as a model named"Insurance". - Register the second model to
"Insurance"using an f-string literal forrun_idand the artifact URI.
Praktische interactieve oefening
Probeer deze oefening eens door deze voorbeeldcode in te vullen.
# Register the first (2022) model
____.____("____", "____")
# Register the second (2023) model
____.____(f"____", "____")