Code Monkey home page Code Monkey logo

neural-manifold-and-plasticity's Introduction

Neural manifold under plasticity in a goal driven learning behaviour

Computational investigation of interplay between the low-dimensional dynamics of a recurrent neural network and plastic recurrent weight changes.

Corresponding paper: Feulner and Clopath, 2021.

Requires Python 3.

Setup python environment

python 3.9.12 and pip 21.2.4

# create python virtual environment
python -m venv manifold_env

# activate environment
source manifold_env/bin/activate

# install dependencies
pip install -r requirements.txt

Run scripts

Figure 2

Move to the clone directory (e.g., in my home directory):

cd ~/neural-manifold-and-plasticity/

Run simulation (takes 10 min):

python fig2_simulation.py

The script creates simulation files stored in data/fig2/:

- data/
    fig2/
        experiment_results.npy
        network.npz
        relearning_results.npy
        W_initial.npy
        W_outside.npy
        W_stabilized.npy
        W_within.npy

Reproduce figure 2 (.svg files stored in figures/fig2/):

python fig2_plots.py

Figure 3

run simulation figure 3 (takes 10 min):

python fig3_simulation.py

Reproduce figure 3 (.svg files stored in figures/fig4/):

python fig3_plots.py

Figure 4

Run simulation for figure 4 (takes 10 min):

python fig4_simulation.py

Reproduce figure 4 (.svg files stored in figures/fig4/):

python fig4_plots.py

etc ...

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.