mercurial.core.plasticity module

Hebbian learning and plasticity for neural models (Section 25).

class mercurial.core.plasticity.PlasticJansenRit(jr_params=None, hebb_params=None, **kwargs)[source]

Bases: object

Jansen‑Rit column with plastic connectivity constants. Uses empirical parameters.

Methods

derivative

get_EEG

sigmoid

step

derivative(state: ndarray, p_ext: float = 0.0) ndarray[source]
get_EEG() float[source]
sigmoid(v: float) float[source]
step(dt: float, p_ext: float = 0.0) None[source]
class mercurial.core.plasticity.PlasticWilsonCowan(wc_params: WilsonCowanParams | None = None, hebb_params: HebbianParams | None = None, **kwargs)[source]

Bases: object

Wilson‑Cowan population with plastic excitatory and inhibitory weights. Uses empirical parameters for Wilson‑Cowan and Hebbian learning.

Methods

get_weights

sigmoid

step

__init__(wc_params: WilsonCowanParams | None = None, hebb_params: HebbianParams | None = None, **kwargs)[source]
Parameters:
wc_paramsWilsonCowanParams, optional

Empirical Wilson‑Cowan parameters.

hebb_paramsHebbianParams, optional

Empirical Hebbian learning parameters.

**kwargsoverrides for individual parameters.
get_weights() Dict[str, float][source]
sigmoid(x: float, a: float, theta: float) float[source]
step(dt: float, P_ext: float = 0.0, Q_ext: float = 0.0) None[source]