text_plain_output_1.png
from sklearn.linear_model import LinearRegression

from sklearn.metrics import mean_absolute_error

model = LinearRegression()
model.fit(x_train, y_train)
preds = model.predict(x_valid)
print(mean_absolute_error(preds, y_valid))