Created
December 22, 2020 09:28
-
-
Save darioappsilon/7fb045e1cc8b48ffd4c4f8c6fcfd8b1e to your computer and use it in GitHub Desktop.
006_linear_regression
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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