Learn R Programming

darch (version 0.12.0)

tanhUnit: Continuous Tan-Sigmoid unit function.

Description

Calculates the unit activations and returns them in a list.

Usage

tanhUnit(input, ...)

Arguments

input

Input for the activation function.

...

Additional parameters, not used.

Value

A list with the activation in the first entry and the derivative of the transfer function in the second entry.

See Also

Other darch unit functions: exponentialLinearUnit, linearUnit, maxoutUnit, rectifiedLinearUnit, sigmoidUnit, softmaxUnit, softplusUnit

Examples

Run this code
# NOT RUN {
data(iris)
model <- darch(Species ~ ., iris, darch.unitFunction = "tanhUnit")
# }

Run the code above in your browser using DataLab