Hopfield¶
Systems / ODEs / Exotic systems
A six-neuron continuous Hopfield network whose recurrent inhibition drives the neural activity chaotic (Lewis–Glass).
Definition¶
\[
\begin{aligned}
\dot{x1} &= - \beta + \frac{\tanh{\left(eps \left(- x_{2} - x_{5} - x_{6}\right) \right)}}{2} + \frac{1}{2} - \frac{x_{1}}{\tau} \\
\dot{x2} &= - \beta + \frac{\tanh{\left(eps \left(- x_{4} - x_{5} - x_{6}\right) \right)}}{2} + \frac{1}{2} - \frac{x_{2}}{\tau} \\
\dot{x3} &= - \beta + \frac{\tanh{\left(eps \left(- x_{1} - x_{2} - x_{5}\right) \right)}}{2} + \frac{1}{2} - \frac{x_{3}}{\tau} \\
\dot{x4} &= - \beta + \frac{\tanh{\left(eps \left(- x_{1} - x_{2} - x_{3}\right) \right)}}{2} + \frac{1}{2} - \frac{x_{4}}{\tau} \\
\dot{x5} &= - \beta + \frac{\tanh{\left(eps \left(- x_{1} - x_{2} - x_{4}\right) \right)}}{2} + \frac{1}{2} - \frac{x_{5}}{\tau} \\
\dot{x6} &= - \beta + \frac{\tanh{\left(eps \left(- x_{2} - x_{3} - x_{4}\right) \right)}}{2} + \frac{1}{2} - \frac{x_{6}}{\tau}
\end{aligned}
\]
Parameters¶
| Symbol | Default | Role |
|---|---|---|
beta |
0.5 |
tonic drive |
eps |
10 |
synaptic gain |
tau |
2.5 |
membrane time constant |
State variables: x1, x2, x3, x4, x5, x6
Properties¶
Lyapunov spectrum
TODO — lyapunov_spectrum failed: AttributeError
Kaplan–Yorke dimension
TODO — requires a numeric Lyapunov spectrum
Divergence ∇·f
$\nabla\!\cdot f = - \frac{6}{\tau}$
constant
constant
Equilibria
none found (no equilibria)
Use it in TSDynamics¶
import tsdynamics as ts
system = ts.systems.Hopfield()
traj = system.run(final_time=100.0, dt=0.01)
ts.plot(traj)
spectrum = ts.analysis.lyapunov_spectrum(system)
ts.analysis.kaplan_yorke_dimension(spectrum)
Reference¶
Lewis & Glass (1992), Neural Comput. 4, 621-642
doi:10.1162/neco.1992.4.5.621
