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)



rxode2 documentation built on July 28, 2026, 5:08 p.m.