Linear Regression, Machine Learning, Deep Learning, Jupyter Notebook, Naem Azam.
the dataset should be on or near the line. Let’s plot this line and verify. X = np.array([1,2,3,5]) Y = np.array([2,3,2,4]) y = lambda x: 0.43*x + 1.57 line = np.array([y(x) for x in range(7)]) plt.plot(line) plt.scatter(X,Y) plt.show() That seems fine, I mean there can be infinite lines but the