LinearRegression takes in its fit method arguments X, y, sample_weight and stores the coefficients \(w\) of the linear model in its coef_ and intercept_ attributes: >>> from sklearn import linear_model >>> reg = linear_model.LinearRegression() >>> reg.fit([[0, 0], [1, 1], [2, 2]], [0, 1, 2]) LinearRegression() >>> reg.coef_ array([0.5, 0.5]) >>> reg.intercept_ 0.0 The coefficient estimates for Ord

