sigmoidUnit: Sigmoid unit function with unit derivatives.

Description Usage Arguments Value See Also Examples

View source: R/darchUnitFunctions.R

Description

The function calculates the activation and returns a list which the first entry is the result through the sigmoid transfer function and the second entry is the derivative of the transfer function.

Usage

1
sigmoidUnit(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, softmaxUnit, softplusUnit, tanhUnit

Examples

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

## End(Not run)

maddin79/darch documentation built on May 21, 2019, 10:53 a.m.