Machine Learning, Linear Regression, Linear Regression Python, Linear Regression Example, Regression Analysis.
round(lr.predict([[300]])[0],2) Predicted Sales : 23.71 by using the equation of linear regression, Recall the equation is y = b0 + b1 * x1 b0: intercept b1: coefficient x1: 300 $ y = lr.intercept_ + lr.coef_* 300 Predicted Sales : 23.71 Multiple Linear Regression Now, it’s time to see the dataset