Chans

Untitled

Jan 14th, 2018
2,408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. # Visualizing the Training set results
  2. plt.figure()
  3. plt.scatter(X_train, y_train, color='red')
  4. plt.plot(X_train, regressor.predict(X_train), color='blue')
  5. plt.title('Years of Experience (Training set)')
  6. plt.xlabel('Years of Experience')
  7. plt.ylabel('Salary')
  8. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment