Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created May 3, 2021 14:00
Show Gist options
  • Save amankharwal/987856ce1456377e63d120a757982b6e to your computer and use it in GitHub Desktop.
Save amankharwal/987856ce1456377e63d120a757982b6e to your computer and use it in GitHub Desktop.
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