how to make confusion matrix in r
library(caret)
confusionMatrix(data = your_prediction,
reference = data$y)
how to make confusion matrix in r
library(caret)
confusionMatrix(data = your_prediction,
reference = data$y)
r confusion matrix
# Get the actual responses from the dataset
actual_response <- churn$has_churned
# Get the "most likely" responses from the model
predicted_response <- round(fitted(mdl_churn_vs_relationship))
# Create a table of counts
outcomes <- table(predicted_response, actual_response)
# See the result
outcomes
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us