This repo contains the code (notebooks, scripts) for Local Mixup, as presented in our paper "Preventing Manifold Intrusion with Locality: Local Mixup" (https://arxiv.org/abs/2201.04368). We also provide the dataset of the two coiling spirals used in our paper. Note that this dataset can also be generated by the user with different values of noise.
- A Pytorch installation https://pytorch.org
- Python version 3.8.1 (lower versions might not work)
- (optional) CIFAR10 dataset,CIAFAR100 dataset, SVHN, Fashion MNIST from https://pytorch.org/vision/stable/datasets.html.
We provide:
- Generate_Spiral_dataset.ipynb used to generate the spirals dataset.
- Spiral_Experiment.ipynb used to carried out the spirals dataset.
- data\spirals_datasets the folder that contains the spirals dataset.
We provide the script cifar10_lipschitz.py used to compute
We provide the notebook cifar.ipynb used to compute the error rates on Cifar10.
We provide the script fashionmnist.py used to compute the error rates on Fashion MNIST.
We provide the script svhn.py used to compute the error rates on MNIST.