Description Usage Arguments Value See Also Examples
Compute a confusion matrix
1 | confusion_matrix(pred, valid)
|
pred |
vector of predicted categories |
valid |
vector of true categories, after validation |
An object of class table
with the predicted categories as rows and the true, validated categories as columns. The list of categories is made the same for each which always result in a square matrix
Other confusion statistics functions: autoplot.table
,
blank_diagonal
,
confusion_stats
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.