Never mind the metrics -- what about the uncertainty? Visualising confusion matrix metric distributions

David Lovell, Dimity Miller, Jaiden Capra, Andrew Bradley
6/5/2022
cs.LGstat.ML

Official code: DavidRLovell/Never-mind-the-metrics (1 star, GPL-3.0, last commit 2023-06-28).

Abstract

There are strong incentives to build models that demonstrate outstanding predictive performance on various datasets and benchmarks. We believe these incentives risk a narrow focus on models and on the performance metrics used to evaluate and compare them -- resulting in a growing body of literature to evaluate and compare metrics.

Show full abstract

This paper strives for a more balanced perspective on classifier performance metrics by highlighting their distributions under different models of uncertainty and showing how this uncertainty can easily eclipse differences in the empirical performance of classifiers. We begin by emphasising the fundamentally discrete nature of empirical confusion matrices and show how binary matrices can be meaningfully represented in a three dimensional compositional lattice, whose cross-sections form the basis of the space of receiver operating characteristic (ROC) curves. We develop equations, animations and interactive visualisations of the contours of performance metrics within (and beyond) this ROC space, showing how some are affected by class imbalance. We provide interactive visualisations that show the discrete posterior predictive probability mass functions of true and false positive rates in ROC space, and how these relate to uncertainty in performance metrics such as Balanced Accuracy (BA) and the Matthews Correlation Coefficient (MCC). Our hope is that these insights and visualisations will raise greater awareness of the substantial uncertainty in performance metric estimates that can arise when classifiers are evaluated on empirical datasets and benchmarks, and that classification model performance claims should be tempered by this understanding.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Visualising confusion matrix performance metric distributions

10Jun 3, 20223 years agoGPL-3.0

Similar Papers

Cite this paper

@article{lovell2022never,
  title  = {Never mind the metrics -- what about the uncertainty? Visualising confusion matrix metric distributions},
  author = {David Lovell and Dimity Miller and Jaiden Capra and Andrew Bradley},
  year   = {2022},
  eprint = {2206.02157},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.02157}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.02157.svg)](https://codeofpaper.com/paper/2206.02157)

Discussion