Code accompanying our NeurIPS 2023 paper, Counterfactually Comparing Abstaining Classifiers.
YJ Choe, Aditya Gangrade, Aaditya Ramdas
Tested on Python 3.9; recommended version is 3.7.1 or higher.
git clone https://github.com/yjchoe/ComparingAbstainingClassifiers
cd ComparingAbstainingClassifiers
pip3 install --upgrade pip
pip3 install pandas seaborn sklearn comparecast mlens
pip3 install -e .
nb_drci_binary_mar_*.ipynb
contains the code to reproduce the simulated experiments in the paper.- If needed, the
plots_only
notebook should be run after running the other two notebooks.
- If needed, the
nb_drci_cifar100_pretrained.ipynb
contains the code to reproduce the CIFAR-100 experiment.- This first requires computing features using a pre-trained model. Instructions are included in the notebook.
MIT
If you use parts of our work, please cite our paper as follows:
Text:
Choe, Y. J., Gangrade, A., & Ramdas, A. (2023). Counterfactually comparing abstaining classifiers. Advances in Neural Information Processing Systems (NeurIPS).
BibTeX:
@article{choe2023counterfactually,
title={Counterfactually Comparing Abstaining Classifiers},
author={Choe, Yo Joong and Gangrade, Aditya and Ramdas, Aaditya},
journal={Advances in Neural Information Processing Systems (NeurIPS)},
year={2023}
}