Aan de slagGa gratis aan de slag

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.

Deze oefening maakt deel uit van de cursus

Introduction to MLflow

Cursus bekijken

Oefeninstructies

  • 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 uses python3.9 to execute train_model.py.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

"""
# Set name of the Project
____: ____

# Set the environment
____: ____

entry_points:
 	# Create an entry point
  	____:
  		# Create a command
    	____: '____ ____'
"""
Code bewerken en uitvoeren