ELU function

Exponential Linear Unit (ELU) Activation Function

Exponential Linear Unit (ELU) Activation Function

ELU(x, alpha = 1)

Arguments

  • x: A numeric vector. All elements must be finite and non-missing.
  • alpha: A numeric scalar. All elements must be finite and non-missing.

Returns

A numeric vector where the ReLU function has been applied to each element of x.

Examples

ELU(c(-1, 0, 1, 2), 2) # Can also be used in rxode2: x <- rxode2({ r=SELU(time) }) e <- et(c(-1, 0, 1, 2)) rxSolve(x, e)

See Also

Other Activation Functions: GELU(), PReLU(), ReLU(), SELU(), Swish(), dELU(), dGELU(), dPReLU(), dReLU(), dSELU(), dSwish(), dlReLU(), dsoftplus(), lReLU(), softplus()

Author(s)

Matthew Fidler