Giter VIP home page Giter VIP logo

cann_base's Introduction

Basic Implementation of a Continuous-attractor Neural Network

This repository stores a simple implementation of a continuous-attractor neural network model used in Fung, Wong and Wu (2008) and Fung, Wong and Wu (2010). The equation used in the python code was not exactly the same as that in those papers. This is a rescaled version:

\tau \frac{du(x,t)}{dt} = -u(x,t) + \int dx^\prime J\left(x,x^\prime\right) r\left(x^\prime,t\right)+A\exp\left[-\frac{\left|x-z(t)\right|^2}{4a^2}\right]

r(x,t) = \frac{\left[u(x,t)\right]+{}^2}{1+\frac{k}{8\sqrt{2\pi}a}\int dx^\prime \left[u(x^\prime,t)\right]+{}^2}

J\left(x,x^\prime\right) = \frac{1}{\sqrt{2\pi}a}\exp\left(-\frac{\left|x-x^\prime\right|^2}{2a^2}\right)

Except the dynamic variable and parameters are rescaled versions, the magnitude of external input is now decoupled from the magnitude of $u$ in stationary states.

In the simulation, how the change of network states responding to change of external input is demonstrated. In which, the external input is initially at $z=0$ in the preferred stimuli space. At $t=0$, the external input was changed from 0 to $z_0$. Snapshots taken per $10 \tau$ are presented to show the transient of the process.

Parameters:

-k [float] : Degree of the rescaled inhibition
-a [float] : Half-width of the range of excitatory connections
-N [int] : Number of neurons / units
-A [float] : Magnitude of the rescaled external input
-z0 [float] : New position of the external input after the sudden change

cann_base's People

Contributors

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