This repository implements Conformalized Early Stopping: a novel method that combines early stopping with conformal calibration using only one set of hold-out data while convetional methods require additional data-splitting or conservative adjustments to meet the same theoretical guarantees. Accompanying paper is available on arxiv: https://arxiv.org/abs/2301.11556
ConformalizedES/
Python package implementing our methods and some alternative benchmarks.third_party/
Third-party Python packages imported by our package.experiments/
Codes to replicate the figures and tables for the experiments with real data discussed in the accompanying paper.experiments/exp_oc_cifar.py
Code to reproduce the numerical results for the outlier detection setting.experiments/exp_mc.py
Code to reproduce the numerical results for the multi-class classification setting.experiments/exp_reg.py
Code to reproduce the numerical results for the regression setting.make_plots_*.R
R codes generating the figures and tables used in the accompanying paper.
Prerequisites for the CES package:
- numpy
- scipy
- sklearn
- skgarden
- torch
- tqdm
- sympy
- torchmetrics
- collections
- numdifftools
- xml
- math
- pandas
- matplotlib
- statsmodels
Additional prerequisites to run the numerical experiments:
- shutil
- torchvision
- tempfile