Linear Regression, Machine Learning, Deep Learning, Jupyter Notebook, Naem Azam.
create our LinearRegression object and train it on the data. To train the data we use the fit() method. Let’s do it. from sklearn.linear_model import LinearRegression reg = LinearRegression() reg.fit(X,Y) From the graph above, we can clearly see that there is a positive linear relationship between