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.
This exercise is part of the course
Introduction to MLflow
Exercise instructions
- Set the name of the Project to
insurance_model
. - Set the Python environment to use a file called
python_env.yaml
. - Create an entry point called
main
. - Create a command for the
main
entry point that usespython3.9
to executetrain_model.py
.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
"""
# Set name of the Project
____: ____
# Set the environment
____: ____
entry_points:
# Create an entry point
____:
# Create a command
____: '____ ____'
"""