Skip to content

Instantly share code, notes, and snippets.

@nopps07
Created March 12, 2021 09:10
Show Gist options
  • Save nopps07/d71cf9267788a4968ab2cb2be0ad0311 to your computer and use it in GitHub Desktop.
Save nopps07/d71cf9267788a4968ab2cb2be0ad0311 to your computer and use it in GitHub Desktop.
{r prediction}
probs <- predict(fit, test, type = "response")
probs[1:5]
pred <- ifelse(probs > 0.5, "Good", "Bad")
pred[1:5]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment