This repository contains all the necessary code to test or retrain the delay-based neural network presented in
For each task, start by going to the corresponding directory. Each directory contains all the necessary code to test or retrain the model on the specific task.
All the code was tested with python version 3.8.18 and the dependencies listed in requirements.txt.
To test, run:
python main.py testTo train, run:
python main.pyTo run hyperparameter optimization (required for most tasks), run this command multiple times, and pick the best resulting network with validation metrics:
python main.py rnd_mainFull CLI documentation is provided with the "--help" command, e.g.:
python main.py test --helpPretrained weights are available in the "weights" subdirectory and will be loaded automatically during testing.
Pretrained weights are available in the "weights" subdirectory and will be loaded automatically during testing.
Pretrained weights are available in the "weights" subdirectory. The weights must be selected during testing:
python main.py test <experiment_id>This directory presents the cost in latency and energy of having synaptic delays on Loihi. To reproduce results, run:
python delay.py