Package: probcal 0.2.0

probcal: Calibration of Binary and Multiclass Probabilities

Provides S3 calibrators, metrics, and diagnostics for binary and multiclass probability calibration. Binary methods include Platt scaling, temperature scaling, beta calibration, histogram binning, and isotonic regression. Multiclass methods include temperature scaling, vector scaling, Dirichlet calibration, and a one-vs-rest wrapper for the binary calibrators. A calibration-inference layer adds debiased calibration errors, bootstrap confidence intervals, and a kernel calibration hypothesis test for binary and multiclass predictions, including the strong (canonical) multiclass case. Methods follow Platt (1999, ISBN:9780262194488), Zadrozny and Elkan (2002) <doi:10.1145/775047.775151>, Guo et al. (2017) <https://proceedings.mlr.press/v70/guo17a.html>, Kull et al. (2017) <doi:10.1214/17-EJS1338SI>, Kull et al. (2019) <doi:10.48550/arXiv.1910.12656>, Widmann et al. (2019) <doi:10.48550/arXiv.1910.11385>, and Kumar et al. (2019) <doi:10.48550/arXiv.1909.10155>.

Authors:Pedro Rafael Diniz Marinho [aut, cre, cph]

probcal_0.2.0.tar.gz
probcal_0.2.0.zip(r-4.7-any)probcal_0.2.0.zip(r-4.6-any)probcal_0.2.0.zip(r-4.5-any)
probcal_0.2.0.tgz(r-4.6-any)probcal_0.2.0.tgz(r-4.5-any)
probcal_0.2.0.tar.gz(r-4.7-any)probcal_0.2.0.tar.gz(r-4.6-any)
probcal_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
probcal/json (API)

# Install 'probcal' in R:
install.packages('probcal', repos = c('https://prdm0.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/prdm0/probcal/issues

Pkgdown/docs site:https://prdm0.github.io

On CRAN:

Conda:

machine-learningrlanstatistical-learningstatistics

4.70 score 332 downloads 19 exports 17 dependencies

Last updated from:72cd9d5e45. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK195
source / vignettesOK220
linux-releaseOK185
macos-releaseOK121
macos-oldrelOK154
windows-develOK116
windows-releaseOK112
windows-oldrelOK117
wasm-releaseOK115

Exports:acecal_betacal_cical_cvcal_dirichletcal_histogramcal_isotoniccal_ovrcal_plattcal_temperaturecal_testcal_vector_scalingeceinv_logitlogitmcemmcereliability_diagramskce

Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerrlangS7scalesvctrsviridisLitewithr

Applied Calibration Workflow
Goal | Prepare the data | Fit a classifier | Fit calibrators | Compare calibration metrics | Plot the calibrated probabilities

Last update: 2026-06-23
Started: 2026-06-23

Calibrating Binary Probabilities
Why calibration matters | A three-split workflow | Fit a calibrator | Compare methods | Reliability diagram | Cross-validated calibration | Optional reference validation | Current scope

Last update: 2026-06-23
Started: 2026-06-23

Choosing a Calibrator
The main decision | Match the input scale | Compare methods on held-out data | Practical guidance

Last update: 2026-06-23
Started: 2026-06-23

Multiclass Calibration
From two classes to several | Simulating an overconfident classifier | Measuring multiclass calibration | Temperature scaling on logits | Dirichlet calibration on probabilities | One-vs-rest calibration | Comparing the calibrators | Reliability diagram | Out-of-fold calibration | Scope

Last update: 2026-06-23
Started: 2026-06-23

Numerical Validation
Purpose | Optional checks | Why not compare every method | Running the optional tests

Last update: 2026-06-23
Started: 2026-06-23