Module 4 · step 1 of 5 · Training and comparing runs
Start a training run
Train every algorithm of the churn pipeline and follow the run while it works.
App6 min
In this step you will check your churn pipeline, start its first training run and follow it until it finishes. It matters because a run is where the pipeline becomes numbers you can compare, and because checking first saves you from waiting on a run that was going to fail.
The idea
Your pipeline is a recipe: a dataset, preprocessing steps and three candidate algorithms. A run is the moment mlflow cooks it. It fits every algorithm, scores each one with cross-validation (the average over several train and test splits) and ranks them. One algorithm on one split proves little, because a lucky split can flatter a weak model. The run also adds a Baseline row, a dummy model that always predicts the most common class. A real model has to beat it clearly.
On screen, the recipe lives in Pipelines, the training button in Review & run, and the finished work in Runs.
Step by step
- Select Pipelines in the project sidebar and open the churn pipeline from the demo.
- Open Review & run and select Check without running. mlflow checks the pipeline against the real dataset and answers "All good" or lists the steps that need a fix, each with an Open step N link. Checking trains nothing, so do it every time.
- Open Models and confirm the three algorithms are there. Look at the Cross-validation card: CV folds and Fold strategy.
- Back in Review & run, select Train 3 models. If your changes are not saved, they are saved first as a new version. A Training screen shows Algorithm 1 of 3 and an estimate of the time left.
- Wait, or select Run in background and open Runs in the sidebar. The new run shows the status
queued,runningand thensucceeded. - Open the run. While it trains, the Log tab shows the stage (for example Comparing models) and a live chart of each candidate's metric. When it ends, the run opens on the Leaderboard tab.
The demo allows 10 training runs and one at a time. Training keeps going on the server if you close the tab; find the run later on the Runs page.
Common mistakes
- Training without checking. Check without running tells you which step fails and why, before any compute is spent.
- Starting a second run while the first is still going in the demo. Wait for
succeeded. - Reading
failedas the end. The run page explains what went wrong; fix the step it points to and select Train again. - Forgetting that unsaved edits are saved as a new version when you train. The run always records the exact version it used.
As a data scientist
Always compare against a baseline before you believe a score, and use cross-validation so one lucky split cannot fool you. The run stores a Request snapshot of every parameter on its Log tab, so you can reproduce or explain any score later; treat that as part of the result, not a detail.
Checkpoint
You should see a run with the status succeeded and a Leaderboard tab listing the three algorithms plus a Baseline row.