MultiGaussian
MultiGaussian#
- class sinabs.activation.MultiGaussian(mu: float = 0.0, sigma: float = 0.5, grad_scale: float = 1.0)[source]#
Surrogate gradient as defined in Yin et al., 2021.
https://www.biorxiv.org/content/10.1101/2021.03.22.436372v2
- __eq__(other)#
Return self==value.
- __hash__ = None#
- __init__(mu: float = 0.0, sigma: float = 0.5, grad_scale: float = 1.0) None #
- __repr__()#
Return repr(self).
- __weakref__#
list of weak references to the object (if defined)