Enable MLflow Tracking
Learn how to enable MLflow tracking in Capsules and Pipelines.
Was this helpful?
Learn how to enable MLflow tracking in Capsules and Pipelines.
Was this helpful?
Ensure MLflow is enabled in your Code Ocean deployment. If it is, you will see the MLflow icon to enter the MLflow tracking server dashboard via the Navigation sidebar. Reach out to your Code Ocean admin if you require MLflow to be enabled.
Enabling MLflow tracking in a Capsule ensures that models created in that Capsule can be tracked, managed, and deployed using MLflow.
To enable MLflow tracking within your Capsule:
Open the Capsule you want to enable MLflow tracking.
Navigate to the Environment page and to the section “MLflow Tracking”.
Add MLflow Code: Include the necessary MLflow tracking code in your Capsule’s training script. See more information below.
Enable tracking by toggling ON “Track this Capsule”.
Run your Capsule. MLflow will automatically create a new experiment in your tracking server, and all runs will be tracked accordingly.
It is recommended to give a run a name, by adding mlflow.start_run(run_name =“run name”), otherwise, MLflow gives each run a random name.
MLflow model tracking integrates seamlessly with Code Ocean Pipelines, taking advantage of Nextflow’s powerful parallel processing capabilities.
To enable MLflow tracking within your Pipeline, you can add a tracked Capsule to your Pipeline, or start tracking a Capsule that is already part of your Pipeline. Run your Pipeline and MLflow will automatically create a new experiment in your tracking server. All runs will be tracked accordingly.
See above for more information on how to track a Capsule using MLflow.