Aan de slagGa gratis aan de slag

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).

Deze oefening maakt deel uit van de cursus

Introduction to MLflow

Cursus bekijken

Oefeninstructies

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

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

"""
  # 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 {____}"
"""
Code bewerken en uitvoeren