confuMat-methods {MLInterfaces}R Documentation

Methods for Function confuMat in Package 'MLInterfaces'

Description

compute the confusion matrix for a classifier's output

Methods

obj = "classifOutput"
Typically, an instance of class "classifOutput" is built on a ``training'' subset of the input data, and the ``test'' subset's true class labels are available. This method cross-tabulates the true labels of the test set against the predictions of the fitted classifier.

Examples

library(golubEsets)
data(Golub_Merge)
smallG <- Golub_Merge[1:50,]
k1 <- knnB(smallG, "ALL.AML", 1:30)
confuMat(k1)

[Package MLInterfaces version 1.10.3 Index]