▶ Sign up free for the video, slides & prompts
The lesson below is open to all. Enter your email once to unlock every video, slide deck, prompt and code example on this device.
Checking…
MLOps: Shipping ML Models · Lesson 5 of 14 · 1 min read · 5 min video
Experiment tracking
Log parameters, metrics and artefacts with MLflow, and compare runs.
📄 Download slides (PDF)· free sign-upYou try 40 combinations of features and settings. Two weeks later, which one gave the best result? If the answer lives in your memory or in cell outputs, it's lost. Experiment tracking records every run automatically.
What to log for each run
- Parameters: learning rate, tree depth, feature list, data version
- Metrics: accuracy, RMSE, precision and recall, on validation and test sets
- Artefacts: the model file, plots, the confusion matrix
- Context: the Git commit, who ran it, and when
MLflow in a few lines
Run mlflow ui, and every run appears in a table you can sort, filter and compare side by side.
Compare fairly
- Use the same validation set for every run
- Change one thing at a time when you can
- Keep a final test set you look at only once, for the chosen model
From experiment to registry
When a run wins, register its model. The model registry from the last lesson then links straight back to the run, with all its parameters and metrics.
In one line
Log the parameters, metrics, artefacts and commit of every training run, so you can compare them fairly and trace the winner back to exactly how it was made.
Share with a friend