Git Product home page Git Product logo

spikes's Introduction

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.

spikes's People

Contributors

akshaybabloo avatar dependabot-preview[bot] avatar pyup-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

spikes's Issues

Related to data

How to convert the original dataset to be suitable for BSA encoding?

Error trying to run example

Hi.

I have installed spikes, and I'm trying to run the BSA example.
But when I run the code, the line

print(spikes_bsa.get_spikes())

gives me an error in the line 80 of encoder.py

features = self.file_reader.time_feature_length()

The error is

AttributeError: 'str' object has no attribute 'time_feature_length'

Is there anyone else with the same trouble?

Best regards.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.