softmax | R Documentation |
Find the maximum in each row of a matrix.
softmax(x, gap = FALSE)
x |
a numeric matrix. |
gap |
if |
A factor with levels the column labels of x
and values the
columns corresponding to the maximum column. If gap = TRUE
a
list is returned, the second component of which is the difference
between the largest and next largest column of x
.
predict.fda
,
confusion
,
fda
mda
data(iris)
irisfit <- fda(Species ~ ., data = iris)
posteriors <- predict(irisfit, type = "post")
confusion(softmax(posteriors), iris[, "Species"])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.