Details
They are also scored differently, and that is measured rather than stylistic. An overlap metric is a formula on counts, so averaging a batch’s scores is the score; three of these four are not means over images at all. On 4000 images at a prevalence of 3%, against a model whose own probabilities are the truth, pooling the whole pass against averaging batches of 8 moves balanced accuracy by 0.0035, macro F1 by 0.0734, and the AUC by up to 0.0371 in a direction that does not settle with a bigger batch - because at that prevalence 398 of 500 batches hold no positive at all, so a per-class recall is an average over whichever batches happened to contain the rare class. The engine therefore accumulates these over the pass and computes them once at the end.
metric_auc() is the engine’s default and the other three are offered rather than recommended. At a 3% prevalence a calibrated model never crosses the threshold, so everything read off the hard prediction sees the same all-negative answer: accuracy spans 0.0100 across models of genuinely different quality and is not even monotone - a model with no signal scores above two that have one - while the AUC spans 0.4631. Balanced accuracy and F1 do not rescue it; they move by 0.0000 and -0.0005 between a real signal and a collapse. Being threshold-free is the property that separates them.
So metric_accuracy() is here because it is the number people ask for, and its page says what it costs.