confusion | R Documentation |
Computes the confusion matrix of a classification result.
confusion(true, predicted)
true |
true classes. |
predicted |
predicted classes. |
This is a pure print function.
true <- c('a','a','b','b','c','c')
predicted <- c('a','c','b','b','a','c')
confusion(true, predicted)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.