Description Usage Arguments Value Author(s) See Also Examples
The misclassification rate is appropriate for 0-1 loss function for class prediction.
1 | misclassificationrate(y, yp)
|
y |
vector of test cases |
yp |
corresonding vector of predictions |
the misclassification rate
A. I. McLeod
1 2 3 | y <- c(3,1,1,3,3)
yh <- c(1,1,1,1,1)
misclassificationrate(y, yh)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.