Skip to content

Instantly share code, notes, and snippets.

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 saimadhu-polamuri/4c8ee8df0c4a944df9b4e70700ede334 to your computer and use it in GitHub Desktop.
Save saimadhu-polamuri/4c8ee8df0c4a944df9b4e70700ede334 to your computer and use it in GitHub Desktop.
## Linear regression model
linearModel = LinearRegression()
linearModel.fit(X_train, y_train)
## Evaluating the model
print(linearModel.score(X_test, y_test))
"""
## Output
Output: 0.6873769003852167
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment