MLInterfaces (version 1.52.0)

confuMat-methods: Compute the confusion matrix for a classifier.

Description

This function will compute the confusion matrix for a classifier's output

Arguments

Examples

Run this code
library(golubEsets)
data(Golub_Merge)
smallG <- Golub_Merge[101:150,]
k1 <- MLearn(ALL.AML~., smallG, knnI(k=1), 1:30)
confuMat(k1)
confuMat(k1, "train")

Run the code above in your browser using DataLab