Hey everyone. Im not fully understand the puprose of
.fit() method in LinearRegression function:
" You can first create a
LinearRegression model, and then fit it to your
line_fitter = LinearRegression() line_fitter.fit(X, y)
.fit() method gives the model two variables that are useful to us:
line_fitter.coef_, which contains the slope
line_fitter.intercept_, which contains the intercept"
Also why do we use Uppercase “X” and lowercase “y” ?