Why conformalpy?
from conformalpy.classifier import ConformalClassifier
cc = ConformalClassifier(model=model, alpha=0.10)
cc.calibrate(X_cal, y_cal)
prediction_sets = cc.predict(X_test) # Sets with 90% coverage guaranteeWhat Makes conformalpy Different
conformalpy goes beyond calibration scores and prediction sets. It provides a complete operational framework for deploying conformal prediction in real-world decision systems.
Outcome Categorization
Every prediction is classified into actionable categories: SC (confident and correct), SI (confident but wrong), TS (uncertain), or Empty. This bridges the gap between statistical guarantees and operational decisions.
Operational Framework
Built-in zone classification (Safe/Uncertain/Problematic), decision rules (auto-approve, auto-reject, manual review), and cost-benefit analysis. Quantify the business value of using conformal prediction.
Interpretability through FCODs
Feature-Conditioned Outcome Distributions show how and why prediction confidence varies across feature ranges. Identify where your model is reliable and where it needs human oversight.
Runtime Alpha
Change the confidence level at prediction time without recalibration. Serve multiple coverage targets from a single calibrated model.
Feature Comparison
| Feature | conformalpy | MAPIE | Crepes |
|---|---|---|---|
| Classification (ICP, CV+, Mondrian) | Yes | Yes | Yes |
| Regression (Split, CQR, Normalized) | Yes | Yes | Yes |
| Outcome categorization (SC/SI/TS) | Yes | No | No |
| Operational framework (zones, costs) | Yes | No | No |
| Outcome FCODs | Yes | No | No |
| Runtime alpha | Yes | No | Partial |
| Fairness metrics & GroupBalanced CP | Yes | No | No |
| Conformal Risk Control | Yes | No | No |
| Exchangeability diagnostics | Yes | No | No |
| Deep learning wrappers (PyTorch/Keras) | Yes | No | No |
Who Is conformalpy For?
ML Practitioners building production systems who need reliable uncertainty quantification with actionable decision rules.
Data Scientists exploring model uncertainty and building human-in-the-loop workflows where uncertain cases go to manual review.
Researchers studying conformal prediction who want a comprehensive, well-tested implementation with advanced methods (Clustered CP, Weighted CP, ACI, Risk Control).
Next Steps
- Introduction for installation and a quick example
- Choose a Method to select the right conformal method
- Classification Guide or Regression Guide to get started