MulaiMulai sekarang secara gratis

Creating an MLproject for the ML Lifecycle: Model Evaluation

In this exercise, you will continue creating your MLproject file to manage steps of the ML lifecycle. You will create another entry point called model_evaluation. This step in the workflow accepts the run_id output from the model_engineering step and runs model evaluation using training data from our Insurance dataset.

You can print the current MLproject file using the IPython Shell and executing print(MLproject).

Latihan ini adalah bagian dari kursus

Introduction to MLflow

Lihat Kursus

Petunjuk latihan

  • Create an entry point called model_evaluation.
  • Set parameters for run_id.
  • Place the parameter within the command.

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

"""
  # Set the model_evaluation entry point
  ____:
    parameters:
      # Set run_id parameter
      ____:
        type: str 
        default: None
    # Set the parameters in the command
    command: "python3.9 evaluate.py {____}"
"""
Edit dan Jalankan Kode