This repository contains code for FAB-PPI: Frequentist, Assisted by Bayes, Prediction-Powered Inference.
The project dependencies are listed in the pyproject.toml file. We provide an additional environment.yaml file that can be used to create a Mamba (or Conda) environment with all the required dependencies to run the experiments:
mamba env create -f environment.yaml && mamba activate fab_ppi-envThe examples directory contains notebooks to replicate the experiments in the paper:
simulation_biased.ipynb: Replicates the biased predictions study in Section 5.1simulation_noisy.ipynb: Replicates the noisy predictions study in Section 5.1alphafold.ipynb: Replicates the mean estimation experiment on thealphafolddataset mentioned in Section 5.2forest.ipynb: Replicates the mean estimation experiment on theforestdataset mentioned in Section 5.2galaxies.ipynb: Replicates the mean estimation experiment on thegalaxiesdataset mentioned in Section 5.2census_healtcare.ipynb: Replicates the logistic regression experiment on thehealthcaredataset mentioned in Section 5.2gene_expression.ipynb: Replicates the quantile estimation experiment on thegenesdataset mentioned in Section 5.2census_income.ipynb: Replicates the quantile estimation experiment on thecensusdataset mentioned in Section 5.2forest_horseshoe_scaled.ipynb: Replicatesforest.ipynbwith different horseshoe scales