Skip to content

code we used in Decision Boundary Analysis of Adversarial Examples https://openreview.net/forum?id=BkpiPMbA-

License

MIT, BSD-2-Clause licenses found

Licenses found

MIT
LICENSE-MadryLab
BSD-2-Clause
LICENSE-carlini
Notifications You must be signed in to change notification settings

sunblaze-ucb/decision-boundaries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the code we used in our paper Decision Boundary Analysis of Adversarial Examples. They are not especially cleaned.

  • gxr3.py: Measure the decision boundary distances and adjacent classes. We are also publishing the randomly chosen directions we used in the Releases page of this repo.
  • eval_cg.py: Evaluate images under Cao & Gong's region classification or under point classification.
  • optens_attack.py Perform the OPTMARGIN attack (MNIST and CIFAR-10 datasets; attack_v2.py in ImageNet).
  • classify.py and classify_test.py: Train a classifier on decision boundary distances and adjacent class data and test the classifier.
  • save_orig.py: Extract images and labels from dataset into Numpy files used in some scripts.
  • save_correctness.py: Create a compact representation of classification correctness used in some scripts.

For ImageNet, the code expects a copy of research/slim/nets from the TensorFlow models repository in imagenet/nets.

About

code we used in Decision Boundary Analysis of Adversarial Examples https://openreview.net/forum?id=BkpiPMbA-

Resources

License

MIT, BSD-2-Clause licenses found

Licenses found

MIT
LICENSE-MadryLab
BSD-2-Clause
LICENSE-carlini

Stars

Watchers

Forks

Packages

No packages published

Languages