image_output_1.png
from sklearn import linear_model

from sklearn import linear_model

from sklearn import linear_model

from sklearn.preprocessing import RobustScaler

from sklearn.preprocessing import RobustScaler
ro_scaler = RobustScaler()
x_train = ro_scaler.fit_transform(x_train)
x_test = ro_scaler.fit_transform(x_test)

from sklearn import linear_model
reg = linear_model.LinearRegression()
reg.fit(x_train, y_train)

from sklearn import linear_model
rid = linear_model.Ridge(alpha=0.9)
rid.fit(x_train, y_train)

from sklearn import linear_model
lass = linear_model.Lasso(alpha=0.6)
lass.fit(x_train, y_train)

lass.score(x_train, y_train)

lass.score(x_test, y_test)