Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
pf = PolynomialFeatures(degree=2)
xp = pf.fit_transform(boston.data)
lr = LinearRegression(normalize=True)
lr.fit(xp, boston.target)
print(lr.score(xp, boston.target))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment