https://github.com/SRKH/S4NN
Raw File
Tip revision: 4e7a86f2231dfea2423c4c45ad5475e655440b0a authored by Saeed Reza Kheradpisheh on 29 December 2020, 09:57:25 UTC
Update S4NN.ipynb
Tip revision: 4e7a86f
README.md
# S4NN
The implementation of S4NN presented in "S. R. Kheradpisheh and T. Masquelier, Temporal backpropagation for spiking neural networks with one spike per neuron, International Journal of Neural Systems (2020), doi: 10.1142/S0129065720500276", availbale at: https://www.worldscientific.com/doi/10.1142/S0129065720500276. it is also available on arXiv at https://arxiv.org/abs/1910.09495.

Two versions of the code are available:
 - The S4NN.py if you want to run the codes with python.
 - The S4NN.ipynb if you want to run the codes on Google CoLab.
  
To run the codes on MNIST dataset, you should first unzip the MNIST.zip file. Then, you should install the python-mnist package. To do so, you can run the following command:

`$ sudo pip install python-mnist`

If you want to run the codes on GPU, you should set GPU=True. Also, you need to install Cupy package to work with GPU. Cupy is already installed on Google CoLab. You can install it on your own machine by the following command:

`$ sudo pip install cupy`

The pre-trained wight matrix is available at weights_pretrained.npy file. 
back to top