项目作者: akshaybabloo

项目描述 :
A Spiking Neural Network framework with SNNML parser written in Python
高级语言: Python
项目地址: git://github.com/akshaybabloo/Spikes.git
创建时间: 2016-10-05T06:09:34Z
项目社区:https://github.com/akshaybabloo/Spikes

开源协议:Other

下载


Spike Encoders

Branch Codecov CI
Master Soon.. Python application

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

Data

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.

Instillation

  1. pip install pyspikes

Example

  1. from spikes import encoder
  2. from spikes.utility import ReadCSV
  3. data = ReadCSV('Data').get_samples()['samples']
  4. bsa = encoder.BSA(data)
  5. print(bsa.get_spikes())
  6. tbr = encoder.TBR(data)
  7. print(tbr.get_spikes())

Contribution

All contributions are welcome.

Issues

Issues can be opened through Github’s Issues tab.