softmaxUnit: Softmax unit function with unit derivatives.

Description Usage Arguments Value References 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 result through the softmax transfer function and the second entry is the derivative of the transfer function.

Usage

1
softmaxUnit(input, ...)

Arguments

input

Input for the activation function.

...

Additional parameters, not used.

Value

A list with the softmax activation in the first entry and the derivative of the transfer function in the second entry.

References

http://www.faqs.org/faqs/ai-faq/neural-nets/part2/section-12.html

See Also

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

Examples

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

## End(Not run)

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

Related to softmaxUnit in darch...