Skip to content

What's inside

Every method in pyconformal. Click a name for a minimal example you can run.

Regression

Method What it gives you Class or function
Split conformal regression Prediction intervals around any regression model. SplitConformalRegressor
Mondrian (group-conditional) conformal prediction One threshold per category, so coverage holds inside every category and not only on average. SplitConformalRegressor, SplitConformalClassifier, ConformalPredictiveSystem
Normalized (locally adaptive) intervals Intervals that are wider where the model is less sure, using a difficulty estimate sigma. SplitConformalRegressor
Weighted conformal prediction (covariate shift) Intervals that stay valid when the test inputs come from a different distribution than the calibration inputs. SplitConformalRegressor
Jackknife+ and CV+ Intervals without setting data aside for calibration. CrossConformalRegressor

Regression on quantiles

Method What it gives you Class or function
Conformalized quantile regression (CQR) Shifts a lower and an upper predicted quantile until they cover. ConformalizedQuantileRegressor
Conformal interquantile regression (CIR, CIR+) Grows one interval from a grid of predicted quantiles. ConformalInterquantileRegressor
Conformal thresholded intervals (CTI) Keeps the shortest interquantile intervals; the result can be a union of intervals. ConformalThresholdedIntervals
Quantile forest A fast quantile regression forest, usable on its own or under CQR, CIR and CTI. QuantileForest
Quantile models from CatBoost, XGBoost and LightGBM One wrapper that makes any of the three libraries predict a grid of quantiles. QuantileBooster

Classification

Method What it gives you Class or function
Mondrian classification: by category or by class Prediction sets with one threshold per category (groups=) or per class (class_conditional=True). SplitConformalClassifier
Split conformal classification (LAC, APS, RAPS, SAPS) Prediction sets that contain the true class with the chosen probability. SplitConformalClassifier, LAC, APS, RAPS, SAPS

Probability calibration

Method What it gives you Class or function
Venn-Abers calibration Calibrated probabilities from any classifier's scores, binary or multi-class. VennAbers, CrossVennAbers

Predictive distributions

Method What it gives you Class or function
Conformal predictive systems A whole calibrated predictive distribution for each prediction, not one interval. ConformalPredictiveSystem
When the outcome is a whole distribution Conformal sets for vector-valued predictions, such as the coefficients of a predicted distribution. ConformalDistributionRegressor, cosine_coefficients, cosine_cdf, cosine_density

Time series

Method What it gives you Class or function
Adaptive conformal inference (ACI) Intervals that widen and narrow online so the long-run miss rate stays on target, whatever the data does. AdaptiveConformalInference
DtACI, AgACI, Conformal PID and NexCP Four more online methods with the same interface as ACI. DtACI, AgACI, ConformalPID, NonexchangeableConformal
Multi-step forecasts: MSCP and AcMCP Intervals for forecasts several steps ahead, one calibration per horizon. MultiStepSplitConformal, AcMCP
EnbPI and SPCI Bootstrap ensembles that give intervals without a calibration set, with residuals sliding forward. EnbPI, SPCI
Panel data: W-TQA and TQA Prediction sets for one unit of a panel, calibrated on the other units in the same round. WeightedTQA
Conformal Seasonal Pools A training-free probabilistic forecaster for seasonal series. ConformalSeasonalPool
STL and MSTL decomposition Fast trend and seasonal decomposition, for one or several seasonal periods. stl, mstl

Building blocks

Method What it gives you Class or function
The conformal quantile, on its own The exact split-conformal threshold for a set of scores, in exact arithmetic. conformal_quantile

Find it by the name you know

You are looking for It is here
Mondrian, group-conditional, category-wise coverage Mondrian regression, Mondrian classification
Class-conditional, label-conditional Mondrian classification (class_conditional=True)
Inductive conformal prediction (ICP) Split conformal regression, classification
Locally adaptive, normalized, difficulty estimate Normalized intervals
Covariate shift, importance weights Weighted conformal prediction
CV+, jackknife+, cross-conformal Jackknife+ and CV+
CQR, quantile regression CQR, CIR, CTI
CatBoost, XGBoost, LightGBM Quantile models from boosting libraries
Probability calibration, Platt or isotonic replacement Venn-Abers
Predictive distribution, CDF, CRPS Conformal predictive systems
Online, distribution shift, drift ACI, DtACI, AgACI, PID, NexCP
Panel data, cross-section, many series, hierarchical retail Panel data: W-TQA and TQA
Forecast horizons Multi-step forecasts
APS, RAPS, SAPS, LAC, THR Classification scores

Not in the library yet

Conformal risk control, conformal object detection, graph and language-model methods, and full (transductive) conformal prediction. Ask for one by opening an issue.