SoftSign#

class braincore.surrogate.SoftSign(alpha=1.0)[source]#

Judge spiking state with a soft sign function.

See also

soft_sign

surrogate_fun(x)[source]#

The surrogate function.

surrogate_grad(x)[source]#

The gradient function of the surrogate function.