Description Usage Arguments Examples
Create a confusion matrix given a specific cutoff.
1 | confusionMatrix(actual, predicted, cutoff = 0.5, use_names = FALSE)
|
actual |
A vector of the labels |
predicted |
A vector of predicted values |
cutoff |
A cutoff for the predicted values |
use_names |
If |
1 2 3 4 5 6 | actual <- c(0, 0, 1)
predicted <- c(1, 0, 1)
confusionMatrix(actual, predicted)
confusionMatrix(actual, predicted, use_names = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.