Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 614 Bytes

README.md

File metadata and controls

9 lines (5 loc) · 614 Bytes

SphereDiscriminator

My recreation of Ian Goodfellow's Adversarial Spheres paper.

sphere_discriminator.py trains a model to predict if a point is on a sphere of radius 1 or a sphere or radius 1.3, then uses gradient descent to try to find a point on a sphere of radius 1 that the model misclassifies. In accordance with the paper's findings, in lower dimensions, it is extremely difficult to produce adversarial examples. Conversely, in higher dimensions, adversarial examples are easy to produce.

Run with:

python sphere_discriminator.py <Number of Dimensions>