This repository includes the code to reproduce the experiments for our paper (paper-source).
This repository is structured as follows:
Embedding-Semi-Supervised
: Code for the proposed Emb-SSL implementations Embedding-FixMatch and Embedding-CoMatchEmbedding-Supervised
: Code for the Emb-SL baselines Embedding-SVM and Embedding-NNSemi-Supervised
: Code for the SSL baselines FixMatch and CoMatchLearning-to-Defer-Algs
: Implementations of the learning to defer algorithms of Mozannar & Sontag, Okati et al., and Raghu et al..
This code depends on the following packages:
torch
torchvision
torchtext
timm
scipy
seaborn
numpy
matplotlib
scikit-learn
tensorboard_logger
Follow these steps to reproduce our experiments:
- (NIH experiments only) Download and extract the NIH dataset to
nih_images/
- (CIFAR experiments only) Generate the synthetic expert labels
- Execute the training of one of the proposed Embedding-Semi-Supervised approaches (or any baseline)
- Generate the artificial expert labels
- Execute the training of one of the learning to defer algorithms
Detailed instructions can be found in the respective subfolders.