Linear Regression, Machine Learning, Deep Learning, Jupyter Notebook, Naem Azam.
training and testing sets, and now is finally the time to train our algorithm. from sklearn.linear_model import LinearRegression regressor = LinearRegression() regressor.fit(X_train, y_train) # Plotting the regression line line = regressor.coef_*X+regressor.intercept_ # Plotting for the test data