TCE: A Test-Based Approach to Measuring Calibration Error

Takuo Matsubara, Niek Tax, Richard Mudd, Ido Guy
6/25/2023
stat.MLcs.LG

Official code: facebookresearch/tce (13 stars, last commit 2023-09-15).

Abstract

This paper proposes a new metric to measure the calibration error of probabilistic binary classifiers, called test-based calibration error (TCE). TCE incorporates a novel loss function based on a statistical test to examine the extent to which model predictions differ from probabilities estimated from data. It offers (i) a clear interpretation, (ii) a consistent scale that is unaffected by class imbalance, and (iii) an enhanced visual representation with repect to the standard reliability diagram. In addition, we introduce an optimality criterion for the binning procedure of calibration error metrics based on a minimal estimation error of the empirical probabilities. We provide a novel computational algorithm for optimal bins under bin-size constraints. We demonstrate properties of TCE through a range of experiments, including multiple real-world imbalanced datasets and ImageNet 1000.

View on arXivView PDF

Code Implementations(1)

Library for the Test-based Calibration Error (TCE) metric to quantify the degree to classifier calibration.

133Python, Jupyter NotebookJun 7, 20233 years agoNOASSERTION

Similar Papers

Cite this paper

@article{matsubara2023tce,
  title  = {TCE: A Test-Based Approach to Measuring Calibration Error},
  author = {Takuo Matsubara and Niek Tax and Richard Mudd and Ido Guy},
  year   = {2023},
  eprint = {2306.14343},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.14343v1}
}

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/2306.14343.svg)](https://codeofpaper.com/paper/2306.14343)

Discussion