linear_model.LinearRegression()
sklearn.linear_model.LinearRegression
-
class sklearn.linear_model.LinearRegression(fit_intercept=True, normalize=False, copy_X=True, n_jobs=1)
[source] -
Ordinary least squares Linear Regression.
Parameters: fit_intercept : boolean, optional
whether to calculate the intercept for this model. If set to false, no intercept will be used in calculations (e.g. data is expected to be already centered).