Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created May 3, 2021 14:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
x_train, x_test, y_train, y_test = train_test_split(boston.data, boston.target, test_size=0.2)
lr = LinearRegression(normalize=True)
lr.fit(x_train, y_train)
print(lr.score(x_test, y_test))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment