Answers for "how does confusion matrix work"

1

how to make confusion matrix in r

library(caret)
confusionMatrix(data = your_prediction, 
                        reference = data$y)
Posted by: Guest on April-26-2020
0

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
Posted by: Guest on December-25-2021

Browse Popular Code Answers by Language