Linear Regression, Machine Learning, Deep Learning, Jupyter Notebook, Naem Azam.
plt.scatter(X, y) plt.plot(X, line); plt.show() Now that we have trained our algorithm, it’s time to make some predictions. # Testing the data print(X_test) Predicting the outcome # Predicting the scores y_pred = regressor.predict(X_test) # Comparing Actual vs Predicted df = pd.DataFrame({'Actual':