MembraneSubtract#

class sinabs.activation.MembraneSubtract(subtract_value: Optional[float] = None)[source]#

Subtract the spiking threshold from the membrane potential for every neuron that spiked.

Parameters

subtract_value (Optional[float]) – optional value that will be subtraced from v_mem if it spiked. Defaults to spiking threshold if None.

Return type

None

Example

>>> layer = sinabs.layers.LIF(reset_fn=MembraneSubtract(subtract_value=None), ...)