Article view

Calzone: A Python package for measuring calibration of probabilistic models for classification

By Kwok Lung Fan, Gene A. Pennello, Qi Liu, Nicholas Petrick, Ravi K. Samala, F. W. Samuelson, Yee Lam Elim Thompson, Qian Cao

Article information

Publication
Published 24 October 2025
Institutions at publication
United States Food and Drug Administration
3 Citations OpenAlex, 6 December 2026 FULL LIST: Citations
Countries with citations No data yet
Usage Phase 3: not collected yet

Abstract

Calzone is a Python package for evaluating the calibration of probabilistic outputs of classifier models. It provides a set of functions for visualizing calibration and computing calibration metrics given a representative dataset with the model's predictions and the true class labels. The metrics provided in Calzone include: expected calibration error (ECE), maximum calibration error (MCE), Hosmer-Lemeshow (HL) test, integrated calibration index (ICI), Spiegelhalter's Z-statistic and Cox's calibration slope/intercept.The package is designed with versatility in mind. Many metrics allow users to adjust binning schemes and choose between top-class or class-wise calculations. Statement of needClassification is one of the most common applications in machine learning. Metrics associated with discrimination performance (resolution), such as area under the curve (AUC), sensitivity (Se, true positive rate), and specificity (Sp, 1 -false positive rate) are typically used to characterize classification performance Hastie et al. (2001). These metrics may be sufficient if the outputs of the model are not meant to be interpreted as a probability. However, Diamond (1992) showed that the resolution (i.e., high performance) of a model does not indicate the reliability/calibration of the model. Calibration is the agreement between predicted and true probabilities, 𝑃 (𝐷 = 1|p = 𝑝) = 𝑝, defined as moderate calibration by Van Calster & Steyerberg (2018), also known as model reliability. Bröcker (2009) later showed that any proper scoring rule can be decomposed into the resolution and reliability. Thus, a model with high resolution may still lack reliability. In high-risk medical applications such as computer-aided diagnosis, reliability enables the correct interpretation of model output, and for downstream treatment decisions.

Citations per year

Citations per year
YearCitations
2025 0
2026 3

OpenAlex counts citations by year for the last ten years only, so the total and the list of citing works can include earlier ones.

Works citing this article

OpenAlex counts 3 citations, but the citing work are not listed here yet: citing works are collected from OpenAlex a few at a time, and it lists most, not all, of the citations it counts.

Where its authors are based

Countries of the institutions the article's authors were affiliated to when it was published.

  • AUTHORS
  • CITATIONS No data yet
  • USAGE Phase 3
Authors by country
CountryAuthors
United States8