Learn R Programming

RobustEM (version 1.0)

confusionMatrix: Confusion Matrix

Description

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

Usage

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

Run this code
## Not run: 
# confusionMatrix(c("A","B","A","B","B","A"),c(1,2,2,1,2,1))
# ## End(Not run)

Run the code above in your browser using DataLab