Skip to main content

Spiking Neural Network Spike Encoders

Project description

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

pip install pyspikes

Example

from spikes import encoder
from spikes.utility import ReadCSV

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

bsa = encoder.BSA(data)
print(bsa.get_spikes())

tbr = encoder.TBR(data)
print(tbr.get_spikes())

Contribution

All contributions are welcome.

Issues

Issues can be opened through Github's Issues tab.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyspikes-0.2.9.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

pyspikes-0.2.9-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file pyspikes-0.2.9.tar.gz.

File metadata

  • Download URL: pyspikes-0.2.9.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pyspikes-0.2.9.tar.gz
Algorithm Hash digest
SHA256 6ca7e9fad9920282f1ad2144949eb56c92e04602145f7d8124bed7bf306d6ee6
MD5 4b2965e2065849aa5ba4e3f0f37c0986
BLAKE2b-256 affd674dd828557e38d94a2571e263b6c6b06e2ccca1ca5173fb81688af84eae

See more details on using hashes here.

File details

Details for the file pyspikes-0.2.9-py3-none-any.whl.

File metadata

  • Download URL: pyspikes-0.2.9-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pyspikes-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9d7ebae353b7cf6cb456ecbd2548b1dca7c884f10eba1204e845d8956627816b
MD5 93e7f4aeb811786f4c5724c61c0d30e3
BLAKE2b-256 07da031139d194b0a44dd753a3e74a36d99afb14ebefb188f34aa02921eedd1b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page