Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save animesh-agarwal/29efdaa788a59e89e0d9fdade4b1ffcc to your computer and use it in GitHub Desktop.
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
Copy link

icoric commented Feb 11, 2020

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