from sklearn.linear_model import LinearRegression reg = LinearRegression() reg.score(X, y) #Fit linear model reg.coef_ #Estimated coefficients for the linear regression problem reg.predict(y) #Predict using the linear model