Code of the ICML paper : Randomization matters How to defend against strong adversarial attacks. Rafael Pinot, Raphael Ettedgui, Geovani Rizk, Yann Chevaleyre, Jamal Atif.
Use the requirements.txt file
pip install -r requirements.txt
All the hyperparameters are in the config.json file.
To train a mixture
python train.py
To eval the mixture
python eval.py --adversary=[ADVERSARY] --alpha=[ALPHA]
Example :
python eval.py --adversary=pgd --alpha=0.2