Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. from sklearn.linear_model import LinearRegression
  2. # Fitting the model
  3. model = LinearRegression()
  4. model.fit(X_train,y_train)
  5. # Predicting test values
  6. y_pred = model.predict(X_test)
  7. y_pred
  8. # Accuracy measure
  9. model.score(X_test,y_test)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement