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-env
The 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 thealphafold
dataset mentioned in Section 5.2forest.ipynb
: Replicates the mean estimation experiment on theforest
dataset mentioned in Section 5.2galaxies.ipynb
: Replicates the mean estimation experiment on thegalaxies
dataset mentioned in Section 5.2census_healtcare.ipynb
: Replicates the logistic regression experiment on thehealthcare
dataset mentioned in Section 5.2gene_expression.ipynb
: Replicates the quantile estimation experiment on thegenes
dataset mentioned in Section 5.2census_income.ipynb
: Replicates the quantile estimation experiment on thecensus
dataset mentioned in Section 5.2forest_horseshoe_scaled.ipynb
: Replicatesforest.ipynb
with different horseshoe scales