Code to accompany "Conformal Prediction as Bayesian Quadrature" by Jake Snell & Tom Griffiths (ICML 2025 Outstanding Paper).
- uv for managing python packages and dependencies
- just for running commands
- gdown for downloading MS-COCO data
Run just test
.
- Be sure that the
output
directory exists (e.g. by runningmkdir output
). - Run
just synth-run {method}
, where{method}
iscrc
for Conformal Risk Control,rcps
for Risk-controlling Prediction Sets, orhpd
for our highest posterior density method. This will create a CSV file inoutput
that contains the results of the experiment. - To summarize the results, run
just synth-analyze {method}
.
Follow the same steps as the synthetic binomial experiments, but replace synth
with heteroskedastic
.
- Be sure that the
output
directory exists (e.g. by runningmkdir output
). - Run
just heteroskedastic-run {method}
, where{method}
iscrc
for Conformal Risk Control,rcps
for Risk-controlling Prediction Sets, orhpd
for our highest posterior density method. This will create a CSV file inoutput
that contains the results of the experiment. - To summarize the results, run
just heteroskedastic-analyze {method}
.
First, run just fetch
to download the necessary data1. Then, follow the same steps as the heteroskedastic experiments above but replace heteroskedastic
with coco
.
- Be sure that the
output
directory exists (e.g. by runningmkdir output
). - Run
just coco-run {method}
, where{method}
iscrc
for Conformal Risk Control,rcps
for Risk-controlling Prediction Sets, orhpd
for our highest posterior density method. This will create a CSV file inoutput
that contains the results of the experiment. - To summarize the results, run
just coco-analyze {method}
.
Footnotes
-
Data credit: conformal-prediction. ↩