confusionMatrix(actual,predicted) code in r code example
Example: how to make confusion matrix in r
library(caret)
confusionMatrix(data = your_prediction,
reference = data$y)
library(caret)
confusionMatrix(data = your_prediction,
reference = data$y)