superneuromat.SNN.stdp_setup#

SNN.stdp_setup(Apos: list | None = None, Aneg: list | None = None, positive_update: bool | Any = None, negative_update: bool | Any = None, time_steps=None) None[source]#

Setup the Spike-Time-Dependent Plasticity (STDP) parameters

Parameters:
  • Apos (list, default=[1.0, 0.5, 0.25]) – List of parameters for excitatory STDP updates

  • Aneg (list, default=[-1.0, -0.5, -0.25]) – List of parameters for inhibitory STDP updates

  • positive_update (bool) – Boolean parameter indicating whether excitatory STDP update should be enabled

  • negative_update (bool) – Boolean parameter indicating whether inhibitory STDP update should be enabled

Raises:
  • TypeError

    • Apos is not a list

    • Aneg is not a list

    • positive_update is not a bool

    • negative_update is not a bool

  • ValueError

    • Number of elements in Apos is not equal to that of Aneg

    • The elements of Apos, Aneg are not int or float

    • The elements of Apos, Aneg are not greater than or equal to 0.0

  • RuntimeError

    • enable_stdp is not set to True on any of the synapses