This repository contains the code for the paper titled 'Local Intrinsic Dimensionality Signals Adversarial Perturbations'.
To get a local copy up and running follow these simple steps.
The code was written and tested on Python 3.7.
- Clone the repo
git clone https://github.com/sandamal/adversarial_lid_bounds
- Install python packages
pip install -r requirements.txt
- lid_bounds_cdf.py - calculate the bounds using the CDFs of the distance distributions.
- lid_bounds_rank.py - calculate the bounds using the ranks instead of the CDFs of the distance distributions
Distributed under the MIT License.