dlReLU function

Derivative of Leaky ReLU activation function

Derivative of Leaky ReLU activation function

dlReLU(x)

Arguments

  • x: numeric vector

Returns

numeric vector

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)

See Also

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