ConfusionMatrix | R Documentation |
ConfusionMatrix
Produces a confusion matrix for a trained model or data.frame showing the proportion of observed values that take the same values as the predicted values. Where the outcome variable in the model is not a factor and not a count, observed and predicted values are assigned to buckets.
ConfusionMatrix(
obj,
subset = obj$subset,
weights = obj$weights,
decimals = NULL
)
obj |
A model with an outcome variable or a data.frame where the first column is the outcome and the second column is the prediction. |
subset |
An optional vector specifying a subset of observations to be used or the name of a
column if |
weights |
An optional vector of sampling weights or the name of a column if |
decimals |
The number of decimal places for the values. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.