Code Monkey home page Code Monkey logo

snn-liquid-state-machine's Introduction

SNN-Liquid-State-Machine

A simple implementation of Liquid State machine using Leaky integrate and fire spiking neurons

The folder consists of C-files for simulation of a spiking neural network, they can be compiled and run using gcc.

The neurons are simple leaky integrate-and-fire models. The synaptic current is modeled by a single decaying expoential kernel.

For all simulations, the time step (dt) is kept at 0.1ms.

The main file is lsm_simln.c and 2 files for the functions used are spk_gen.c & nmc_str.c.

  1. spk_gen.c: Generates the input and desired (used only when running a supervised learning algorithm) spike streams at the specified average rate.

  2. nmc_str.c: Creates the connectivity matrix for the LSM based neural micro circuit.

lsm_simln.c: This simulates a network of N recurrently connected neurons. The header file (snn.h) has the network parameters which can be modified.

N: no. of neurons in the network

simT: duration of simulation

M: no. of time steps (simT/dt)

X,Y,Z: no. of neurons in each of the 3 directions within the NMC block.

To compile: gcc lsm_simln.c spk_gen.c nmc_str.c -lm -o lsm To run: ./lsm

The run saves the input and output spikes in a .dat file It also prints out the time needed to simulate the complete network.

snn-liquid-state-machine's People

Contributors

k18shruti avatar

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.