text_html_output_1.png
from sklearn.ensemble import RandomForestRegressor

from sklearn.metrics import mean_absolute_error

from sklearn.ensemble import RandomForestRegressor
reg = RandomForestRegressor(random_state=1)

reg.fit(X_train, y_train)

pred = reg.predict(X_val)

from sklearn.metrics import mean_absolute_error
mae = mean_absolute_error(y_val, pred)
mae