Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

MLflow

Works with JupyterLab

MLflow helps organize the development of machine-learning models. In EOxHub Workspaces, it can be used alongside JupyterLab to record experiments, compare model runs, and keep relevant outputs together.

What is MLflow?

Machine-learning development commonly involves testing different datasets, parameters, model architectures, and training configurations. Without dedicated experiment tracking, it can become difficult to determine which combination produced a particular result.

MLflow organizes this information into experiments and runs. Each run can contain:

This makes experiments easier to compare, reproduce, and share with other members of a project.

Using MLflow in EOxHub

MLflow can be accessed through its graphical interface in an EOxHub Workspace. Experiments can be inspected in the interface, while notebooks and Python scripts submit information to the MLflow tracking service.

A typical workflow is:

  1. Open JupyterLab and prepare the training or evaluation code

  2. Connect the code to the MLflow tracking service

  3. Create or select an experiment

  4. Log parameters, metrics, and relevant artifacts during each run

  5. Open the MLflow interface to compare the results

  6. Register selected models and manage their versions in the Model Registry.

The exact tracking configuration may depend on the workspace and project setup.

Experiment tracking

MLflow Tracking provides a structured history of model development. It can help answer questions such as:

Runs can be grouped into experiments and compared through the MLflow interface.

MLflow also supports automatic logging for several popular machine-learning libraries. Consult the MLflow automatic logging documentation to see which libraries and information are supported.

MLFlow Experiments

Models and artifacts

In addition to numeric parameters and metrics, MLflow can record files produced during an experiment. These may include:

The MLflow Model Registry provides a central place to manage trained models throughout their lifecycle. Registered models retain their connection to the experiment and run that produced them.

The registry can be used to:

Together, Experiment Tracking and the Model Registry make it easier to move from exploratory model development toward reproducible, shared workflows.

MLFlow Experiments

Good practices

When tracking experiments:

Examples and learning resources

The EOxHub Example Notebooks include examples demonstrating how MLflow can be used from a Jupyter notebook.

Additional resources: