On the Usefulness of the Fit-on-the-Test View on Evaluating Calibration of Classifiers

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Kängsepp, Markus, Valk, Kaspar, Kull, Meelis
Natura: Preprint
Pubblicazione: 2022
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909512046215168
author Kängsepp, Markus
Valk, Kaspar
Kull, Meelis
author_facet Kängsepp, Markus
Valk, Kaspar
Kull, Meelis
contents Every uncalibrated classifier has a corresponding true calibration map that calibrates its confidence. Deviations of this idealistic map from the identity map reveal miscalibration. Such calibration errors can be reduced with many post-hoc calibration methods which fit some family of calibration maps on a validation dataset. In contrast, evaluation of calibration with the expected calibration error (ECE) on the test set does not explicitly involve fitting. However, as we demonstrate, ECE can still be viewed as if fitting a family of functions on the test data. This motivates the fit-on-the-test view on evaluation: first, approximate a calibration map on the test data, and second, quantify its distance from the identity. Exploiting this view allows us to unlock missed opportunities: (1) use the plethora of post-hoc calibration methods for evaluating calibration; (2) tune the number of bins in ECE with cross-validation. Furthermore, we introduce: (3) benchmarking on pseudo-real data where the true calibration map can be estimated very precisely; and (4) novel calibration and evaluation methods using new calibration map families PL and PL3.
format Preprint
id arxiv_https___arxiv_org_abs_2203_08958
institution arXiv
publishDate 2022
record_format arxiv
spellingShingle On the Usefulness of the Fit-on-the-Test View on Evaluating Calibration of Classifiers
Kängsepp, Markus
Valk, Kaspar
Kull, Meelis
Machine Learning
Artificial Intelligence
Every uncalibrated classifier has a corresponding true calibration map that calibrates its confidence. Deviations of this idealistic map from the identity map reveal miscalibration. Such calibration errors can be reduced with many post-hoc calibration methods which fit some family of calibration maps on a validation dataset. In contrast, evaluation of calibration with the expected calibration error (ECE) on the test set does not explicitly involve fitting. However, as we demonstrate, ECE can still be viewed as if fitting a family of functions on the test data. This motivates the fit-on-the-test view on evaluation: first, approximate a calibration map on the test data, and second, quantify its distance from the identity. Exploiting this view allows us to unlock missed opportunities: (1) use the plethora of post-hoc calibration methods for evaluating calibration; (2) tune the number of bins in ECE with cross-validation. Furthermore, we introduce: (3) benchmarking on pseudo-real data where the true calibration map can be estimated very precisely; and (4) novel calibration and evaluation methods using new calibration map families PL and PL3.
title On the Usefulness of the Fit-on-the-Test View on Evaluating Calibration of Classifiers
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2203.08958