jayaram-r / adversarial-detection

Code and experiments for the adversarial detection paper
MIT License
19 stars 3 forks source link

Why is this noisy data generated? #98

Closed jS5t3r closed 2 years ago

jS5t3r commented 2 years ago

This script generates noisy data? https://github.com/jayaram-r/adversarial-detection/blob/master/expts/generate_noisy_data.py

Why is this done? For which defenses is that useful?

jayaram-r commented 2 years ago

It is used by the 'deep mahalanobis' and 'local intrinsic dimensionality' based defense methods. See this script detection_main.py on the following lines: 470 and 611.

jayaram-r commented 2 years ago

The script generate_noisy_data.py has to be run prior to running the defense methods in order to generate the noisy data.

jS5t3r commented 2 years ago

Thanks