linearUnit: Linear unit function with unit derivatives.

Description Usage Arguments Value See Also Examples

View source: R/darchUnitFunctions.R

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

1
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

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

## End(Not run)

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

Related to linearUnit in darch...