Module 4 · step 2 of 5 · Training and comparing runs
Read the leaderboard
Find the best model, check the ranking metric and compare two candidates side by side.
App7 min
In this step you will open the finished churn run, find out what the leaderboard ranks by, re-sort it and put the two best candidates side by side on the Compare tab. It matters because a ranking is only useful if you know what it ranks by and how far apart the rows really are.
The idea
The Leaderboard tab has one row per trained model and one column per metric. A single number hides trade-offs: accuracy rewards a model that predicts "stays" for almost everyone when most customers stay, while Recall shows how many real churners you caught. The caption above the table names the metric that decided the order, and the Baseline row is the dummy reference that is never ranked.
A score is an average over cross-validation folds. A gap in the third decimal between two candidates is usually inside the run-to-run noise, so the honest conclusion is a tie, and cost and simplicity break it.
Step by step
- Select Runs in the sidebar and open your finished run.
- On the Leaderboard tab, read the Best model card: the winner, its main metrics, Training time and Model size.
- Scroll to All models and read the caption above the table, for example
ranked by Accuracy. That is the metric that decided the order. - Click another column heading, such as Recall or AUC, to sort by it, and click again to reverse. Notice whether the winner changes. Training time and Size sort the same way.
- Find the Baseline row and compare each candidate with it.
- Tick the check boxes of two candidates. A bar at the bottom shows how many are selected; select Compare. You can also open the Compare tab and choose Model A and Model B.
- Read Metrics (the difference and the Winner column, which shows tie when the gap is too small), Pipeline structure and Diagnostics.
- Back in the table, select View details on the best candidate and open its Plots tab to see the Confusion matrix and ROC curve.
Do not read only the top row
If the top two candidates are close, prefer the simpler or faster one and look at Training time and Model size too.
Common mistakes
- Trusting the first row without reading the caption. If the run ranked by Accuracy and your problem needs Recall, re-sort and look again.
- Treating a tiny gap as a win. The Winner column says tie for a reason.
- Ignoring a model that failed. Its row offers Show error and Why this model failed; it does not take part in the ranking.
- Judging candidates without looking at the Baseline row.
As a data scientist
Choose the metric before you look at the table, from the cost of a wrong prediction, and then use the leaderboard to confirm rather than to hunt for a flattering column. The confusion matrix is one click away from every row in mlflow, so open it whenever two candidates look equal: they often make different kinds of mistakes.
Checkpoint
You should see the Compare tab filled with a Metrics table, a Winner column and the confusion matrix of both candidates.