powered by
Computes the confusion matrix of a classification result.
confusion(true, predicted)
true classes.
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)
Run the code above in your browser using DataLab