Projection#

class brainpy.Projection(name=None, mode=None)[source]#

Base class to model synaptic projections.

Parameters:
  • name (Optional[str]) – The name of the dynamic system.

  • mode (Optional[Mode]) – The computing mode. It should be an instance of Mode.

clear_input(*args, **kwargs)[source]#

Empty function of clearing inputs.

reset_state(*args, **kwargs)[source]#

Reset function which resets local states in this model.

Simply speaking, this function should implement the logic of resetting of local variables in this node.

See https://brainpy.readthedocs.io/en/latest/tutorial_toolbox/state_resetting.html for details.

update(*args, **kwargs)[source]#

The function to specify the updating rule.