Skip to content

Instantly share code, notes, and snippets.

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