SpikingHandler

Full Name

neuroptimiser.core.processes.SpikingHandler

Description

class SpikingHandler[source]

Bases: AbstractProcess

Spiking Handler Process

This process handles the spiking activity of units back and forth between the internal and external bounds. It manages the input and output ports for spiking activity, allowing units to communicate their states.

Inports
s_inInPort

Input port for the spiking activity from inside the bounds.

a_inInPort

Input port for the spiking activity from outside the bounds.

Outports
a_outOutPort

Output port for the spiking activity to outside the bounds.

s_outOutPort

Output port for the spiking activity to inside the bounds.

See also

neuroptimiser.core.models.PySpikingHandlerModel

Model implementation of the SpikingHandler process.

__init__(agent_id, internal_shape, external_shape, **kwargs)[source]

Initialise the SpikingHandler with the given parameters.

Parameters:
  • agent_id (int) – ID of the agent for which the spiking handler is being created.

  • internal_shape (tuple) – Shape of the internal spiking activity (e.g., (num_dimensions,)).

  • external_shape (tuple) – Shape of the external spiking activity (e.g., (num_agents, num_dimensions)).

Keyword Arguments:

**kwargs (dict, optional) – Additional keyword arguments to be passed to the parent class AbstractProcess.

reset() None[source]

Reset the SpikingHandler to its initial state.

This method is currently a placeholder and does not perform any operations for compatibility purposes.