MembraneSubtract#

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

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

Parameters:

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

Example

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