Exercise

MLflow projects module

MLflow Projects can also be run programmatically with Python using the mlflow projects module.

In this exercise you will run an MLflow Project using the projects module to train a model for your "Insurance" Project. You will define the entry point from your MLproject file to execute the training code. You will also define the experiment name of "Insurance" so that the model is properly logged to the correct experiment in MLflow Tracking.

You may read the contents of the MLproject file by executing print(MLproject) in the IPython shell.

Instructions

100 XP
  • Call the run() function from the mlflow projects module.
  • Set the URI for the MLproject file to the current working directory.
  • Set the entry point to "main" according to the MLproject file.
  • Set the experiment name to "Insurance".