Machine Learning, Linear Regression, Linear Regression Python, Linear Regression Example, Regression Analysis.
dataset, we can easily plot it. This graph allows us to clearly see how the regression line learns from the training set. plt.scatter(X_test, y_test, color = "red") plt.plot(X_test, lr.predict(X_test), color = "green") plt.title("Sales vs TV spending ") plt.xlabel("Sales") plt.ylabel("TV")