dGELU: Derivatives of GELU

View source: R/gelu.R

dGELUR Documentation

Derivatives of GELU

Description

Derivatives of GELU

Usage

dGELU(x)

d2GELU(x)

d3GELU(x)

d4GELU(x)

Arguments

x

numeric vector

Value

numeric vector

See Also

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

Examples

dGELU(c(-2, -1, 0, 1, 2))
d2GELU(c(-2, -1, 0, 1, 2))
d3GELU(c(-2, -1, 0, 1, 2))
d4GELU(c(-2, -1, 0, 1, 2))
# you can use rxode2 as well
r <- rxode2({
   r1 <- dGELU(time)
   r2 <- d2GELU(time)
   r3 <- d3GELU(time)
   r4 <- d4GELU(time)
})
et <- et(c(-2, -1, 0, 1, 2))
rxSolve(r, et)

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