Chans

Untitled

Jan 14th, 2018
2,404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. # Fitting Simple Linear Regression to the Training Set
  2. from sklearn.linear_model  import LinearRegression
  3. regressor = LinearRegression()
  4. regressor.fit(X_train, y_train)
  5.  
  6. # Predicting the Test set results
  7. y_pred = regressor.predict(X_test)
Advertisement
Add Comment
Please, Sign In to add comment