confusion.matrix {gecko} | R Documentation |
Create a confusion matrix
Description
Create a confusion matrix for any multiclass set of predicted vs observed labels in a classification problem.
Usage
confusion.matrix(actual, predicted)
Arguments
actual |
dataframe. Original labels. |
predicted |
dataframe. Predicted labels. |
Value
data.frame. Predicted labels (rows) x Observed labels (cols).
Examples
x = c("FALSE", "TRUE", "FALSE", "TRUE", "TRUE")
y = c("TRUE", "TRUE", "TRUE", "TRUE", "TRUE")
confusion.matrix(x, y)
[Package gecko version 1.0.0 Index]