Skip to content

Instantly share code, notes, and snippets.

@panicpotatoe
Last active March 20, 2019 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save panicpotatoe/2f388cb80ad1da4b40193b473f634f2e to your computer and use it in GitHub Desktop.
Save panicpotatoe/2f388cb80ad1da4b40193b473f634f2e to your computer and use it in GitHub Desktop.
# 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