text_plain_output_1.png
from sklearn import linear_model

from sklearn.preprocessing import StandardScaler

from sklearn.preprocessing import StandardScaler
sc = StandardScaler(with_mean=False)

X_train = sc.fit_transform(X_train)
X_test = sc.transform(X_test)

from sklearn import linear_model
Lasso_reg = linear_model.Lasso(alpha=50, max_iter=100, tol=0.1)

Lasso_reg.fit(X_train, y_train)