QPseudoSpike#

class braincore.surrogate.QPseudoSpike(alpha=2.0)[source]#

Judge spiking state with the q-PseudoSpike surrogate function.

See also

q_pseudo_spike

surrogate_fun(x)[source]#

The surrogate function.

surrogate_grad(x)[source]#

The gradient function of the surrogate function.