confusionMatrix | R Documentation |
The confusion matrix shows how many times a pattern with the real class x was classified as class y. A perfect method should result in a diagonal matrix. All values not on the diagonal are errors of the method.
confusionMatrix(targets, predictions)
targets |
the known, correct target values |
predictions |
the corresponding predictions of a method for the targets |
If the class labels are not already encoded, they are encoded using encodeClassLabels
(with default values).
the confusion matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.