IniziaInizia gratis

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.

Questo esercizio fa parte del corso

Introduction to MLflow

Visualizza il corso

Istruzioni dell'esercizio

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

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

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

# Set the environment
____: ____

entry_points:
 	# Create an entry point
  	____:
  		# Create a command
    	____: '____ ____'
"""
Modifica ed esegui il codice