Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created February 25, 2021 06:48
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 amankharwal/fcc7975c41e974af20d892633c95b514 to your computer and use it in GitHub Desktop.
Save amankharwal/fcc7975c41e974af20d892633c95b514 to your computer and use it in GitHub Desktop.
x_train = x[:-20]
x_test = x[-20:]
y_train = y[:-20]
y_test = y[-20:]
linreg = LinearRegression()
linreg.fit(x_train, y_train)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment