Skip to content

Instantly share code, notes, and snippets.

@risenW
Last active July 17, 2019 08:08
Show Gist options
  • Save risenW/de2f7dfb08eb9420e917bcc3108f4eb5 to your computer and use it in GitHub Desktop.
Save risenW/de2f7dfb08eb9420e917bcc3108f4eb5 to your computer and use it in GitHub Desktop.
import xgboost as xgb
xgb_model = xgb.XGBRegressor(n_estimators=100)
print("MAE Sccore: ", cross_validate(xgb_model, 10, X_train, y_train))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment