Exercise

Creating an MLproject

An MLproject file is a yaml file that stores the configuration of an MLflow Project. The file defines information such as name of the Project, Python environment and entry points to be executed as part of a workflow.

In this exercise, you will create an MLproject file to describe an MLflow Project. You will define the name of the Project, the Python environment, and also create an entry point.

Instructions

100 XP
  • Set the name of the Project to insurance_model.
  • Set the python3.9 environment to use a file called python_env.yaml.
  • Create an entry point called main.
  • Create an command for the main entry point that uses Python to execute train_model.py.