ELU: Exponential Linear Unit (ELU) Activation Function

View source: R/elu.R

ELUR Documentation

Exponential Linear Unit (ELU) Activation Function

Description

Exponential Linear Unit (ELU) Activation Function

Usage

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.

Value

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

Author(s)

Matthew Fidler

See Also

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

Examples


ELU(c(-1, 0, 1, 2), 2)


# Can also be used in rxode2:
x <- rxode2({
   r=ELU(time, 2)
})

e <- et(c(-1, 0, 1, 2))

rxSolve(x, e)



rxode2 documentation built on July 28, 2026, 5:08 p.m.