Learn R Programming

darch (version 0.12.0)

sigmoidUnit: Sigmoid unit function with unit derivatives.

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

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

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

Run the code above in your browser using DataLab