Function reference
Classification
Conformal classifiers and prediction sets
| classifier | Conformal classification algorithms. |
| classifier.ConformalClassifier | Split (Inductive) Conformal Classifier. |
| classifier.CVPlusClassifier | CV+ (cross-conformal) conformal classifier. |
| classifier.JackknifePlusClassifier | Cross-conformal classifier (jackknife+ / CV+ for classification). |
| classifier.ClusteredConformalClassifier | Clustered Conformal Prediction classifier. |
| classifier.WeightedConformalClassifier | Weighted Conformal Classifier for handling covariate shift. |
| classifier.GroupBalancedConformalClassifier | Group-balanced conformal prediction with fairness guarantees. |
| classifier.SplitConformalClassifier | Split conformal classifier with automatic data splitting. |
Regression
Conformal regressors and prediction intervals
| regressor | Conformal Regressor module. |
| regressor.ConformalRegressor | Conformal regressor using split (inductive) conformal prediction. |
| regressor.CQR | Conformalized Quantile Regression. |
| regressor.JackknifePlusRegressor | Jackknife+ / CV+ conformal regressor. |
| regressor.NormalizedConformalRegressor | Normalized Conformal Regressor with adaptive intervals. |
| regressor.ConformalPredictiveDistribution | Conformal Predictive Distribution for regression. |
| regressor.PredictiveDistribution | A conformal predictive distribution for a single test point. |
| regressor.MultiOutputConformalRegressor | Conformal regressor for multi-output (multi-target) regression. |
| regressor.SplitConformalRegressor | Split conformal regressor with automatic data splitting. |
Time Series
Adaptive conformal methods for sequential data
| timeseries | Time Series and Online Conformal Prediction. |
Risk Control
Conformal risk control and RCPS
| risk_control | Conformal Risk Control. |
Nonconformity Functions
Score functions for classification and regression
| nonconformity | Nonconformity score functions for conformal prediction. |
Evaluation
Coverage, efficiency, and calibration metrics
| evaluation | Evaluation metrics for conformal prediction. |
Outcomes
Outcome categorization (SC, SI, TS, MC, MU)
| outcomes | Outcome categorization for conformal prediction. |
FCOD
Feature-Conditioned Outcome Distributions
| fcod | Feature-Conditioned Outcome Distribution (FCOD) for conformal prediction. |
Operational Framework
Zones, cost matrices, and decision rules
| framework | Operational framework for conformal prediction-based decisions. |
Explainability
Conformal SHAP and feature importance
| explainability | Explainability utilities for conformal prediction. |
Deep Learning
PyTorch and TensorFlow adapters
| deep_learning | Deep Learning Integration for Conformal Prediction. |
Diagnostics
Exchangeability tests and calibration checks
| diagnostics | Diagnostic tools for conformal prediction. |
Plots
Visualization utilities
| plots | Visualization utilities for conformal prediction analysis. |
| plots.plot_coverage_vs_confidence | Plot empirical coverage and prediction set type proportions against confidence level. |
| plots.plot_prediction_set_size_distribution | Plot the distribution of prediction set sizes. |
| plots.plot_set_size_vs_true_label | Plot a stacked bar chart showing the distribution of true labels for each prediction set size. |
| plots.plot_nonconformity_scores | Plot nonconformity scores for calibration and test sets, highlighting class and q̂ threshold. |
| plots.plot_conformal_coverage_vs_confidence | Plot coverage and uncertainty metrics for conformal prediction using a stacked area chart. |
| plots.plot_conformal_coverage_by_class | Plot coverage and prediction set types broken down by true class. |
| plots.plot_balanced_conformal_coverage | Plot class-balanced coverage and prediction set types. |
| plots.plot_conformal_by_true_class | Plot conformal prediction outcomes as small multiples, one panel per true class. |
| plots.plot_prediction_set_profiles_by_feature | Plot the percentage of prediction set types by binned values of a feature. |
| plots.plot_prediction_set_profiles_by_category | Plot distribution of prediction set types per category. |
| plots.plot_prediction_set_profiles_split_by_true | Plot prediction set profiles by category, with separate subplots for each true label. |
| plots.plot_prediction_profiles_by_feature_class | Plot prediction set profiles by feature bins, split by predicted or true class. |
| plots.plot_singleton_confusion_matrix | Plot visualization of singleton prediction confusion matrix. |
| plots.plot_outcome_distribution_by_bins | Plot stacked bar chart showing outcome distribution by feature bins. |
| plots.plot_outcome_distribution_by_category | Plot stacked bar chart showing outcome distribution by categorical variable. |
| plots.plot_prediction_intervals | Plot prediction intervals with true values. |
| plots.plot_interval_widths | Plot histogram of interval widths. |
| plots.plot_coverage_by_alpha | Plot coverage vs alpha with optional interval widths. |
| plots.plot_residuals_vs_intervals | Plot residuals compared to interval bounds. |
Backends & Integrations
GPU backends and MLflow integration
| backends | Backend abstraction for CPU/GPU computation. |
| integrations | Integrations with external logging and experiment tracking tools. |
| logging | Logging utilities for conformalpy. |