Metrics reference

Every metric on the leaderboard per task, what it measures and which direction is better.

The All models table on a run has one column per metric. Each value is the mean over the cross-validation folds. The direction column below says whether a higher or a lower value is better; mlflow uses it to choose the Best model and the default sort.

Classification

MetricMeasuresBetter
AccuracyThe fraction of rows predicted correctly.Higher
AUCHow well the model ranks positives above negatives, from 0.5 (chance) to 1.Higher
RecallOf the rows that are truly positive, the share the model found.Higher
Prec. (precision)Of the rows predicted positive, the share that are truly positive.Higher
F1The harmonic mean of precision and recall.Higher
KappaAgreement with the truth, corrected for the agreement expected by chance.Higher
MCCMatthews correlation coefficient: a balanced correlation that stays informative with imbalanced classes.Higher

For a binary target, Recall, Prec. and F1 score the positive class. For a multiclass target they are averaged across classes, weighted by class size, and AUC is computed one class against the rest, weighted. On imbalanced data, prefer F1, MCC or AUC over Accuracy.

Regression

MetricMeasuresBetter
MAEMean absolute error, in the units of the target.Lower
MSEMean squared error. Punishes large errors.Lower
RMSEThe square root of MSE, back in target units.Lower
R2The fraction of the target's variance the model explains.Higher
RMSLERMSE on log values (of absolute values). Relative error matters more than absolute error.Lower
MAPEMean absolute error as a fraction of the true value. Rows whose true value is 0 are skipped.Lower

Clustering

The engine defines these metrics for clustering models:

MetricMeasuresBetter
SilhouetteHow close rows are to their own cluster compared with the nearest other cluster, from -1 to 1.Higher
Calinski-HarabaszThe ratio of between-cluster to within-cluster spread.Higher
Davies-BouldinThe average similarity of each cluster to its most similar one.Lower
Homogeneity, Rand Index, CompletenessAgreement with known labels. They need ground-truth labels.Higher

In the current version, clustering and anomaly runs do not fill metric columns on the leaderboard. Use the silhouette and elbow plots on the model page to judge clusters. Anomaly detection has no metrics; see Anomaly detection.

Time series

MetricMeasuresBetter
MASEError scaled by the error of a naive forecast. Values below 1 beat the naive forecast.Lower
RMSSERoot mean squared error scaled the same way.Lower
MAEMean absolute error in the units of the series.Lower
RMSERoot mean squared error in the units of the series.Lower
MAPEAbsolute error as a fraction of the actual value.Lower
SMAPELike MAPE but symmetric between over- and under-forecasts.Lower
R2The fraction of variance explained.Higher
COVERAGEThe share of actual values that fall inside the prediction interval. It is empty when the model gives no interval.Higher

Which metric ranks the leaderboard

The caption above the All models table states the metric the table is ranked by. Select any column header to sort by another metric. When no metric was chosen for the run, the engine defaults are Accuracy for classification, R2 for regression and MASE for time series. Direction is taken into account: for MAE the lowest value ranks first. Failed models and models without the metric are listed last.

The Baseline row, a dummy reference model, is shown on the leaderboard but is never ranked or chosen as the best model.

Next steps

Learn the theory

Lessons on learning.mlflow.es that explain the ideas behind this page.

Updated 2026-11-22