Linear regression estimated by direct optimization of squared loss.
The fitted model minimizes the average squared-error objective. When alpha > 0, the optimization backend switches to Frank-Wolfe over an exact L1 or L2 ball, depending on l1_ratio. For unregularized fits, both classical and robust sandwich covariance estimators are available.
Attributes
Name
Type
Description
coef_
ndarray of shape (n_features,)
Estimated slope coefficients.
intercept_
float
Estimated intercept. Equals 0.0 when fit_intercept=False.
params_
ndarray of shape (n_params,)
Full parameter vector, including the intercept when present.
std_errors_
ndarray or None
Classical standard errors for params_.
robust_std_errors_
ndarray or None
Heteroskedasticity-robust sandwich standard errors for params_.