Skip to content

Instantly share code, notes, and snippets.

@darioappsilon
Created January 7, 2021 11:42
012_logistic_regression
probs <- predict(logistic, newdata = test_set, type = "response")
pred <- ifelse(probs > 0.5, 1, 0)
confusionMatrix(factor(pred), factor(test_set$Survived), positive = as.character(1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment