Spline-Based Probability Calibration

Brian Lucena
9/20/2018
stat.MLcs.AIcs.LG

Official code: numeristical/introspective (155 stars, Jupyter Notebook, MIT, last commit 2025-04-14).

Abstract

In many classification problems it is desirable to output well-calibrated probabilities on the different classes. We propose a robust, non-parametric method of calibrating probabilities called SplineCalib that utilizes smoothing splines to determine a calibration function.

Show full abstract

We demonstrate how applying certain transformations as part of the calibration process can improve performance on problems in deep learning and other domains where the scores tend to be "overconfident". We adapt the approach to multi-class problems and find that better calibration can improve accuracy as well as log-loss by better resolving uncertain cases. Finally, we present a cross-validated approach to calibration which conserves data. Significant improvements to log-loss and accuracy are shown on several different problems. We also introduce the ml-insights python package which contains an implementation of the SplineCalib algorithm.

View on arXivView PDF

Code Implementations(1)

MIT

Repo for the ML_Insights python package

15567Jupyter Notebook, CythonSep 28, 20161 years agoMIT

Similar Papers

Cite this paper

@article{lucena2018splinebased,
  title  = {Spline-Based Probability Calibration},
  author = {Brian Lucena},
  year   = {2018},
  eprint = {1809.07751},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1809.07751}
}

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

Discussion