powered by
Find the maximum position in a vector, breaking ties at random.
which.is.max(x)
a vector
index of a maximal value.
Ties are broken at random.
Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer.
max.col, which.max which takes the first of ties.
max.col
which.max
# NOT RUN { ## this is incomplete pred <- predict(nnet, test) table(true, apply(pred, 1, which.is.max)) # }
Run the code above in your browser using DataLab