The ConfusionMatrix function shows how often a classification algorithm correctly classifies items. The function takes an input table that includes two columns—one containing the observed class of an item and the other containing the class predicted by the algorithm—and outputs three tables:
- A confusion matrix, which shows the performance of the algorithm
- A table of overall statistics
- A table of statistics for each class