pyconformal: Exact and Fast Conformal Prediction for Tabular Data and Time Series
Conformal prediction is used for its guarantee: if calibration and test data are exchangeable, a 90% split-conformal interval covers at least 90% of the time, for any model and any calibration size. That guarantee belongs to an exact procedure, and software loses it through small choices: a quantile taken without the finite-sample correction, a finite interval returned where only an infinite one is valid, a score computed one way in calibration and another way in prediction. This paper reports an audit of thirteen Python and R packages for conformal prediction, five of them read module by module (MAPIE, crepes, PUNCC, TorchCP and conformal-tights). It found about thirty faults. Two forecasting libraries cover 63% at a 90% target with their default of two calibration windows, and give no warning. One library's prediction sets cover 45% when rows are predicted one at a time. Two implementations of adaptive conformal inference clip the working level and lose the guarantee that defines the method. The basic split-conformal routines of the main libraries met their level in every test. The paper presents pyconformal, an MIT-licensed Python package that implements about thirty conformal methods for regression, classification, probability calibration, predictive distributions, time series and panel data behind one interface. Every unweighted threshold comes from one exact rank rule computed in rational arithmetic, and every method is tested against its definition, against reference code where it exists, and against its guarantee. The package depends only on NumPy; an optional extra adds compiled kernels that return the same results. The package also contains algorithmic improvements: an exact Venn-Abers kernel in integer arithmetic, rank trees for replaying online methods, closed forms for conformal predictive distributions and their CRPS, CV+ prediction in 3 megabytes where MAPIE needs 1.3 to 3.1 gigabytes, and a repaired window rule for conformal interquantile regression. With identical output, Venn-Abers calibration on a million points takes 0.37 seconds against 75 seconds in the reference implementation, and conformal predictive intervals for a million test points take 0.01 seconds against 79 seconds in crepes. The paper describes the design, the algorithms and what each gains in time and memory, the verification method, the audit, and the benchmarks. All findings are for the package versions named in the paper, tested between 20 and 26 November 2026. Code: https://github.com/valeman/pyconformalDocumentation: https://valeman.github.io/pyconformal/Install: pip install pyconformal
Authors
- Valery Manokhin (ORCID: https://orcid.org/0000-0003-4040-554X)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-26
- DOI
- https://doi.org/10.5281/zenodo.24555262
- Primary Topic
- Forecasting Techniques and Applications
- Type
- preprint