dlReLU: Derivative of Leaky ReLU activation function

View source: R/lrelu.R

dlReLUR Documentation

Derivative of Leaky ReLU activation function

Description

Derivative of Leaky ReLU activation function

Usage

dlReLU(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(), dsoftplus(), lReLU(), softplus()

Examples


dlReLU(c(-1, 0, 1))

# Can use in rxode2 as well

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


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