
Last chance! 50% off unlimited learning
Sale ends in
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.
softmaxUnit(input, ...)
Input for the activation function.
Additional parameters, not used.
A list with the softmax activation in the first entry and the derivative of the transfer function in the second entry.
http://www.faqs.org/faqs/ai-faq/neural-nets/part2/section-12.html
Other darch unit functions: exponentialLinearUnit
,
linearUnit
, maxoutUnit
,
rectifiedLinearUnit
,
sigmoidUnit
, softplusUnit
,
tanhUnit
# NOT RUN {
data(iris)
model <- darch(Species ~ ., iris,
darch.unitFunction = c("sigmoidUnit", "softmaxUnit"))
# }
Run the code above in your browser using DataLab