text_html_output_1.png
from xgboost import XGBRegressor
model = XGBRegressor(random_state=42, n_jobs=-1, n_estimators=40, max_depth=4, learning_rate=0.5)
model.fit(X_train, y_train)
preds = model.predict(X_valid)
print(mean_squared_error(y_valid, preds, squared=False))