Skip to main content

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.

Metadata

Release files for pyspikes 0.2.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyspikes 0.2.10
File Size Uploaded Provenance Actions
pyspikes-0.2.10.tar.gz 8.7 kB With provenance Details for pyspikes-0.2.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyspikes 0.2.10
File Interpreter ABI Platform Actions
pyspikes-0.2.10-py3-none-any.whl Python 3 none any Details for pyspikes-0.2.10-py3-none-any.whl

Total release size: 21.0 kB

Release files / pyspikes-0.2.10.tar.gz

Download URL pyspikes-0.2.10.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fc5e01ae728275bb897025158836871e11e7f9d62e7134d79027a8ae2a276768
BLAKE2b-256 checksum
How to use checksums
2e3ea7e3cdfa48536cff3bb406ef9d21120600965fbdcf49ed5146bc83d1b980
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Release files / pyspikes-0.2.10-py3-none-any.whl

Download URL pyspikes-0.2.10-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f3be1245bae67067aca9e144dafb686aa67bb275932a51b8ce862342f56c8b57
BLAKE2b-256 checksum
How to use checksums
8f41800b9dc0587473a737617a6e61f5948fb1d22d2b1e20002bb8bdece703cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Security for pyspikes 0.2.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyspikes-0.2.10.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page