Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Fitting Simple Linear Regression to the Training Set
- from sklearn.linear_model import LinearRegression
- regressor = LinearRegression()
- regressor.fit(X_train, y_train)
- # Predicting the Test set results
- y_pred = regressor.predict(X_test)
Advertisement
Add Comment
Please, Sign In to add comment