Created
September 1, 2019 16:56
-
-
Save omairaasim/907b5fae9ef5cf86f397b1e38b0580cf to your computer and use it in GitHub Desktop.
project_1_step_3_fit_model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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