Skip to content

Instantly share code, notes, and snippets.

@omairaasim
Created September 1, 2019 16:56
Show Gist options
  • Save omairaasim/907b5fae9ef5cf86f397b1e38b0580cf to your computer and use it in GitHub Desktop.
Save omairaasim/907b5fae9ef5cf86f397b1e38b0580cf to your computer and use it in GitHub Desktop.
project_1_step_3_fit_model
# Step 3: Fit Simple Linear Regression to Training Data
from sklearn.linear_model import LinearRegression
regressor = LinearRegression()
regressor.fit(X_train, y_train)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment