GithubHelp home page GithubHelp logo

amvjakob / cppcourse-brunel Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 39.98 MB

Dynamics of Sparsely Connected Networks of Excitatory and Inhibitory Spiking Neurons

CMake 0.98% C++ 86.28% Makefile 0.58% M4 0.77% Objective-C 0.13% C 0.39% Python 10.26% Shell 0.60%

cppcourse-brunel's Introduction

cppcourse-brunel

Aim

This program simulates a spiking neural network of 12500 neurons described in Nicolas Brunel's paper "Dynamics of Sparsely Connected Networks of Excitatory and Inhibitory Spiking Neurons", and aims to reproduce figure 8 of the mentioned paper.

Running

The default values for ETA and G are, respectively, 2 and 5. These can be modified in the src/Constants.hpp file to reproduce the different graphs. The simulation takes about 20s to run from start to finish.

To run the program, follow these steps:

  1. Download or clone repository
  2. Navigate to the cloned / downloaded folder (cppcourse-brunel)
  3. cd build to enter the build folder
  4. cmake .. to run CMake and generate the makefiles
  5. make to make both the simlation as well as the tests. Alternatively, make NeuroSimulation to generate the simulation only or make NeuroSimulation_UnitTest to generate the unit tests only
  6. ./NeuroSimulation to run the simulation, ./NeuroSimulation_UnitTest to run the tests
  7. The result file is created under results/, with the name "spikes_eta[eta_val]_g[g_val].gdf", and contains the times and ids of the neurons that spiked.

Documentation

To create the documentation from scratch, simply type make doc from the build folder to generate it in the doc folder.

Plot

In order to plot the data, I wrote a script (src/graph.py) to produce both a scatterplot and a histogram.

  • The scatterplot shows neuron ID vs spiking time. Every dot corresponds to one spike.

  • The histogram shows the number of spikes for a given time interval (500 bins).

Alternatively, the web application can also be used to generate the plots.

cppcourse-brunel's People

Contributors

amvjakob 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.