Learn R Programming

qrnn (version 2.0.1)

softplus: Approximation to the rectified linear function

Description

Approximation to the rectified linear function. Used as the hidden layer transfer function for nonlinear QRNN models.

Usage

softplus(x, alpha=2)

Arguments

x

numeric vector.

alpha

rounded transition parameter.

See Also

softplus.prime

Examples

Run this code
# NOT RUN {
x <- seq(-2, 2, length=200)
plot(x, softplus(x, alpha=2))
# }

Run the code above in your browser using DataLab