Skip to content

Instantly share code, notes, and snippets.

@darioappsilon
Created December 22, 2020 09:28
Show Gist options
  • Save darioappsilon/7fb045e1cc8b48ffd4c4f8c6fcfd8b1e to your computer and use it in GitHub Desktop.
Save darioappsilon/7fb045e1cc8b48ffd4c4f8c6fcfd8b1e to your computer and use it in GitHub Desktop.
006_linear_regression
# Make predictions on the test set
predictions <- predict(model, test_set)
# Convert to dataframe
eval <- cbind(test_set$Weight, predictions)
colnames(eval) <- c("Y", "Yhat")
eval <- as.data.frame(eval)
head(eval)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment