Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save animesh-agarwal/29efdaa788a59e89e0d9fdade4b1ffcc to your computer and use it in GitHub Desktop.

Select an option

Save animesh-agarwal/29efdaa788a59e89e0d9fdade4b1ffcc to your computer and use it in GitHub Desktop.
from sklearn.linear_model import LinearRegression
from sklearn.metrics import mean_squared_error
lin_model = LinearRegression()
lin_model.fit(X_train, Y_train)
@icoric

icoric commented Feb 11, 2020

Copy link
Copy Markdown

Hey,
I think that there's r2_score import missing from sklearn.metrics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment