Last active
March 20, 2019 09:39
-
-
Save panicpotatoe/2f388cb80ad1da4b40193b473f634f2e to your computer and use it in GitHub Desktop.
This file contains 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
# Predicting a new result with Linear Regression | |
lin_reg.predict([[5.5]]) | |
#output should be 249500 | |
# Predicting a new result with Polymonial Regression | |
pol_reg.predict(poly_reg.fit_transform([[5.5]])) | |
#output should be 132148.43750003 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment