ott.neural.networks.potentials.MLP.act_fn

Contents

ott.neural.networks.potentials.MLP.act_fn#

MLP.act_fn(alpha=1.0)#

Exponential linear unit activation function.

Computes the element-wise function:

\[\begin{split}\mathrm{elu}(x) = \begin{cases} x, & x > 0\\ \alpha \left(\exp(x) - 1\right), & x \le 0 \end{cases}\end{split}\]
Parameters:
Return type:

Array

Returns:

An array.

See also

selu()