ml_genn.synapses package

Synapse models describe the dynamics (if any) applied to inputs delivered by a Connection.

class ml_genn.synapses.Delta

Bases: Synapse

Synapse model where inputs produce instantaneous voltage jumps in target neurons.

get_model(connection, dt, batch_size)

Gets PyGeNN implementation of synapse

Parameters:
  • connection (Connection) – Connection this synapse belongs to

  • dt (float) – Timestep of simulation (in ms)

  • batch_size (int) – Batch size of the model

Return type:

SynapseModel

class ml_genn.synapses.Exponential(tau=5.0, scale_i=False)

Bases: Synapse

Synapse model where inputs produce exponentially decaying currents in target neuron.

Parameters:
  • tau (InitValue) – Time constant of input current [ms]

  • scale_i (bool)

get_model(connection, dt, batch_size)

Gets PyGeNN implementation of synapse

Parameters:
  • connection (Connection) – Connection this synapse belongs to

  • dt (float) – Timestep of simulation (in ms)

  • batch_size (int) – Batch size of the model

Return type:

SynapseModel

class ml_genn.synapses.Synapse

Bases: ABC

Base class for all synapse models

abstract get_model(connection, dt, batch_size)

Gets PyGeNN implementation of synapse

Parameters:
  • connection (Connection) – Connection this synapse belongs to

  • dt (float) – Timestep of simulation (in ms)

  • batch_size (int) – Batch size of the model

Return type:

SynapseModel