View source: R/confusion_matrix.R
confusion_matrix | R Documentation |
creates confusion matrix
confusion_matrix(df, actual, predicted, weight_var = NULL)
df |
data.frame of numeric variables |
actual |
ground truth data |
predicted |
predicted data |
weight_var |
if not NULL, a vector that contains weights for each observation. The NULL case is equivalent to all cases being weighted 1. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.