Code Monkey home page Code Monkey logo

easysim's Introduction

easySim

Simulator for network simulations of LIF neuron variants that utilizes MATLAB's gpuCoder

Description

easySim provides an easy to use Object-oriented format for creating networks of neurons. It then uses MATLAB's GPU Coder to compile optimized CUDA code to actually run the network. While more benchmarking is necessary, currently the simulator runs at ~.33-.5x real time meaning simulating 10s of a network takes ~20-30s (this was done for a network with 4000 cells). Currently "EVLIF" neurons (exponential leaky integrate and fire with variable threshold) and "AEVLIF" (adaptive exponential leaky integrate and fire with variable threshold) are supported although others (LIF, ELIF) will gain support in the near future.

easySim strives to be highly customizable since every parameter can be given a mean and standard deviation for EACH neuron group. Additionally any connection between groups can use one of several different connectivity toplogies and arbitrary synaptic weight distributions. These synaptic weights can then be made subject to triplet STDP rules from Pfister & Gerstner, 2006.

Installation

easySim requires a number of packages in order to utilize the GPU Coder functionality. I recommend updating MATLAB to the 2019b version and installing the 10.1 version of CUDA toolkit (this is compatible with the 2019b MATLAB). For additional installation instructions for GPU Coder please see GPU Coder docs.

For CPU only use, neither CUDA nor GPU Coder are required. Only MATLAB's embedded coder is required.

Getting Started

To get started, check out the examples in the 'test' folder. There are examples utilizing either the CPU or GPU as well as the currently supported EVLIF or AEVLIF networks.

Documentation

There is currently no comprehensive documentation page although I intend to make one in the near future. However, there is extensive documentation within the code itself. From the MATLAB command line simply type help 'class/function name here' for in depth information about each class and function (e.g. help EVLIFnetwork).

Planned additions

While easySim does have triplet STDP plasticity I intend to add a dopamine-based plasticity rule as well to enable reinforcement-learning simulations.

Networks supporting simple LIF or Exponential-LIf neurons will be added soon.

If you have any suggestions for additions, please create an issue topic and I will do my best to add it.

easysim's People

Contributors

benballintyn avatar

Stargazers

Hannah Germaine avatar  avatar

Watchers

 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.