Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Visualizing the Test set results
- plt.figure()
- plt.scatter(X_test, y_test, color='red')
- plt.plot(X_train, regressor.predict(X_train), color='blue')
- plt.title('Salary vs Experience (Test set)')
- plt.xlabel('Years of Experience')
- plt.ylabel('Salary')
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment