Skip to content
A Spiking Neural Network framework with SNNML parser written in Python
Branch: master
Clone or download
Latest commit 9d83fb1 May 12, 2019

Spike Encoders

Branch Codecov CI Requirements
Master Soon.. Build Status Updates

Spike encoders for Spiking Neural Network.

This package consists of two types of spike encoders for spatio-temporal data:

  1. Threshold Based Representation (TBR) encoder
  2. Bens Spiker Algorithm (BSA) encoder


The data given to the encoders are spatio-temporal. Each sample is one csv file. In each file, every column is a feature and the rows are time points.

For example each file given in the Data folder had 128 rows and 14 columns, 14 columns are the features and 128 columns are the data points.


pip install pyspikes


from spikes import encoder
from spikes.utility import ReadCSV

data = ReadCSV('Data').get_samples()['samples']

bsa = encoder.BSA(data)

tbr = encoder.TBR(data)


All contributions are welcome.


Issues can be opened through Github's Issues tab.

You can’t perform that action at this time.