import xgboost as xgb xg_reg = xgb.XGBRegressor() xg_reg.fit( X_train, y_train, eval_set=[(X_train, y_train), (X_test, y_test)], eval_metric="rmse", )Run to view results