lReLU {rxode2}R 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)

[Package rxode2 version 4.0.1 Index]