confusionMatrix: Confusion Matrix

Description Usage Arguments Value Examples

Description

Given the actual and predicted labels, this function computes the confusion matrix.

Usage

1
confusionMatrix(actual, predicted)

Arguments

actual

This is a list of values corresponding to the true class of the data.

predicted

This is a list of values corresponding to the predicted class of the data using the EM algorithm.

Value

t

This is the table representing the confusion matrix.

Examples

1
2
3
4
## Not run: 
confusionMatrix(c("A","B","A","B","B","A"),c(1,2,2,1,2,1))

## End(Not run)

RobustEM documentation built on April 14, 2017, 10:05 a.m.