from sklearn import linear_model reg = linear_model.LinearRegression() reg