softplus: Softplus Activation Function

View source: R/softplus.R

softplusR Documentation

Softplus Activation Function

Description

Softplus Activation Function

Usage

softplus(x)

Arguments

x

numeric vector

Value

numeric vector

Author(s)

Matthew L. Fidler

See Also

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

Examples


softplus(c(-1, 0, 1, 2))

# You can use rxode2 too:

r <- rxode2({
 s <- softplus(time)
})

e <- et(c(-1, 0, 1, 2))

rxSolve(r, e)


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