CS 6362 | Final Project
Alexander Lin & Allan Zhang
- Create a Python virtual environment.
- Run
pip install -r requirements.txt
to load to required modules. - Run
pip install -e .
to allow imports across directories.
- Run
wget https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz
in thedata
directory and untar the downloaded file. - Execute
data/join_data.py
,data/assemble_sets.py
and thendata/assemble_dataloaders.py
to create the PyTorch DataLoaders necessary for model training and testing.
- Download MNIST data from
https://drive.google.com/file/d/11ZiNnV3YtpZ7d9afHZg0rtDRrmhha-1E/view
into thedata
directory. - Execute the
data/assemble_sets_mnist.py
script to create the MNIST data used for anomaly testing.
Run any of the training Python scripts to train a given model. The hyperparameters of the model can be edited by parameterizing the model constructor.
anomaly.py
and latent_graph.py
were used to generate Figure 1 in the paper. Substitute any of models labeled 1 in final_models
into the script to review their specific results. These may vary from what is presented in the paper since it is dependent on randomized data.
anomaly_cifar.py
and latent_graph_cifar.py
were used to generate Figure 1 in the paper. Substitute any of models labeled 2 in final_models
into the script to review their specific results. These may vary from what is presented in the paper since it is dependent on randomized data.