lReLU: Leaky ReLU activation function

View source: R/lrelu.R

lReLUR Documentation

Leaky ReLU activation function

Description

Leaky ReLU activation function

Usage

lReLU(x)

Arguments

x

numeric vector

Value

numeric vector

See Also

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

Examples


lReLU(c(-1, 0, 1))

# Can use in rxode2 as well

r <- rxode2({r <- lReLU(time)})
e <- et(c(-1, 0, 1))
rxSolve(r, e)

nlmixr2/rxode2 documentation built on Jan. 11, 2025, 8:48 a.m.