What's inside
Every method in pyconformal. Click a name for a minimal example you can run.
Regression
Regression on quantiles
Classification
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.