which.is.max {nnet} | R Documentation |
Find the maximum position in a vector, breaking ties at random.
which.is.max(x)
x |
a vector |
Ties are broken at random.
index of a maximal value.
pred <- predict(nnet, test) table(true, apply(pred,1,which.is.max))