how to calculate confusion matrix 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)