Official implementation for the paper " Relabeling Minimal Training Subset to Flip a Prediction"
- The Algorithm is in
IP
function underSmallest_k.py
. - To run algorithms for the
SST
dataset, you can use the command below:
mkdir results
python SST.py
- To run algorithms for the
SST
feature extracted from BERT, you can use the command:
python SST_bert.py
- You can download other processed datasets and hyperparameter information via https://huggingface.co/datasets/Eciel/Smallest_k_experiment.