tanhUnit: Continuous Tan-Sigmoid unit function.

Description Usage Arguments Value See Also Examples

View source: R/darchUnitFunctions.R

Description

Calculates the unit activations and returns them in a list.

Usage

1
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

1
2
3
4
5
## Not run: 
data(iris)
model <- darch(Species ~ ., iris, darch.unitFunction = "tanhUnit")

## End(Not run)

darch documentation built on May 29, 2017, 8:14 p.m.

Related to tanhUnit in darch...