Choosing a Method
Use this guide to select the right conformal prediction approach for your problem.
Classification or Regression?
Classification (prediction sets): Use when predicting discrete classes. See the Classification Guide.
Regression (prediction intervals): Use when predicting continuous values. See the Regression Guide.
Classification Decision Guide
| Method | Data Requirements | Guarantee | When to Use |
|---|---|---|---|
ConformalClassifier |
Calibration set | Marginal coverage | Default choice, fast |
CVPlusClassifier |
No separate cal set | Marginal coverage | Limited data |
ConformalClassifier(mondrian=True) |
Calibration set | Per-class coverage | Imbalanced classes |
ClusteredConformalClassifier |
Calibration set | Per-cluster coverage | Many classes (K > 20) |
WeightedConformalClassifier |
Calibration set + weights | Weighted coverage | Covariate shift |
GroupBalancedConformalClassifier |
Calibration set + groups | Per-group coverage | Fairness requirements |
Default recommendation: Start with ConformalClassifier + lac_nonconformity.
Nonconformity Function Selection
| Function | When to Use | Code |
|---|---|---|
| LAC (default) | Well-calibrated models, smallest sets | lac_nonconformity |
| APS | Need guaranteed non-empty sets | aps_nonconformity |
| RAPS | Want smaller sets than APS | raps_nonconformity |
| SAPS | Deep learning / miscalibrated models | saps_nonconformity |
Regression Decision Guide
| Method | Intervals | Requirements | When to Use |
|---|---|---|---|
ConformalRegressor |
Fixed width | Any regressor | Default choice, simple |
CQR |
Adaptive | Quantile models | Heteroscedastic data |
NormalizedConformalRegressor |
Adaptive | Sigma model | Adaptive without quantile regression |
JackknifePlusRegressor |
Fixed width | Any regressor | No separate calibration set |
ConformalPredictiveDistribution |
Full CDF | Any regressor | Complete uncertainty quantification |
Default recommendation: Start with ConformalRegressor for fixed intervals or CQR for adaptive intervals.
Do You Need Fairness?
If coverage must be equal across groups (demographic, geographic, etc.):
- Known groups at calibration and test time: Use Flexible Mondrian (
calibrate(X, y, groups=...)+predict(X, groups=...)) - Known groups at calibration only: Use
GroupBalancedConformalClassifier - Covariate shift between populations: Use
WeightedConformalClassifier
See the Fairness Guide for details.
Is Your Data Exchangeable?
Standard CP assumes exchangeability (roughly: calibration and test data from the same distribution).
- Yes (i.i.d. data): Use standard methods above
- No (time series, streaming): Use
AdaptiveConformalClassifierorAdaptiveConformalRegressor(see Time Series Guide) - Unsure: Run exchangeability diagnostics (see Diagnostics Guide)
Beyond Coverage: Risk Control
If you need to control a specific loss (FNR, FDR, custom) rather than just coverage:
- Single-label: Use
ConformalRiskController(see Risk Control Guide) - Multi-label: Use
MultiLabelConformalClassifier