MulaiMulai sekarang secara gratis

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.

Latihan ini adalah bagian dari kursus

Introduction to MLflow

Lihat Kursus

Petunjuk latihan

  • Register the first model in directory model_2022 as a model named "Insurance".
  • Register the second model to "Insurance" using an f-string literal for run_id and the artifact URI.

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Register the first (2022) model
____.____("____", "____")

# Register the second (2023) model
____.____(f"____", "____")
Edit dan Jalankan Kode