GithubHelp home page GithubHelp logo

liamtimms / kuramoto-neurons Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8.55 MB

code for "Synchronization in phase-coupled Kuramoto oscillator networks with axonal delay and synaptic plasticity"

License: MIT License

IGOR Pro 31.20% Rust 61.77% Python 7.03%

kuramoto-neurons's Introduction

Kuramoto Neurons

This repository holds code related to "Synchronization in phase-coupled Kuramoto oscillator networks with axonal delay and synaptic plasticity" https://journals.aps.org/pre/abstract/10.1103/PhysRevE.89.032906. It simulates emergent behavior of coupled oscillator networks with learning rules and time delays that more closely mimic the interactions between neurons in the brain than in traditional machine learning "neuronal network" based approaches.

pic alt pic alt

It is currently split into 3 directories, each containing code for one language:

Igor Pro

This folder contains a copy of the script (covering both the model and some plotting), originally written circa 2013 for my undergraduate honors thesis and the publication above. It is a "procedure file" for a program called Igor Pro which enabled easy and powerful visualization at the time but is, unfortunately, both locked-down/proprietary and obscure (relative to alternatives like MATLAB and Python). Those aspects limited the potential use of the code and direct exploration of the models by others. I also didn't know how to use git, python, etc. at the time, so the file here is just copied from surviving copies I had in an old backup. It is here just for the historical record.

Rust

In August 2022, I translated the Igor Pro modeling code to the Rust programming language. Doing so provides:

  1. greater accessibility of the model since Rust is entirely open source (and I can provide pre-compiled binaries),
  2. much faster execution with modern optimizations and C-like performance,
  3. a project for me to learn Rust.

To build the binary, one should install the Rust toolchain and run

cargo build --release

inside the kuramoto-rust directory. That will create an optimized binary under the target/release subdirectory. The CLI parameters available for the program can then be listed via,

./release/kuramoto_rust -h

and the kuramoto_rust binary can then be copied anywhere on your system. Documentation isn't fully complete currently but is available under target/doc/kuramoto_rust when built with cargo doc.

Python

This folder contains some simple python scripts for plotting and animating the resulting data files from the rust program. It has preliminary examples for the 1D and 2D cases.

kuramoto-neurons's People

Contributors

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