Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created April 16, 2021 11:25
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/9556b49d8f45becc4681ccc859444e5d to your computer and use it in GitHub Desktop.
Save amankharwal/9556b49d8f45becc4681ccc859444e5d to your computer and use it in GitHub Desktop.
linear_regression = LinearRegression()
linear_regression.fit(xtrain, ytrain)
accuracy = linear_regression.score(xtest, ytest)
print(accuracy)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment