| confuTab {MLInterfaces} | R Documentation |
Given a n by n confusion matrix, the function returns a
list of n 2 by 2 tables with false positives, false
negatives, false positives and true negative for each initial variables.
confuTab(obj, naAs0. = FALSE)
obj |
An instance of class |
naAs0. |
A |
A list of length nrow(obj) and names
rownames(obj).
Laurent Gatto <lg390@cam.ac.uk>
The tp, tn, fp,
fn, methods to extract the respective classification
outcomes from a contingency matrix.
## the confusion matrix cm <- table(iris$Species, sample(iris$Species)) ## the 3 confusion tables (ct <- confuTab(cm))