darch (version 0.12.0)

linearUnit: Linear unit function with unit derivatives.

Description

The function calculates the activation of the units and returns a list, in which the first entry is the linear activation of the units and the second entry is the derivative of the transfer function.

Usage

linearUnit(input, ...)

Arguments

input

Input for the activation function.

...

Additional parameters, not used.

Value

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

See Also

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

Examples

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

Run the code above in your browser using DataLab