Skip to content

Instantly share code, notes, and snippets.

@netsatsawat
Created May 19, 2019 18:20
Show Gist options
  • Save netsatsawat/4e935e76aeb7d5dc16f54ce0bb21851d to your computer and use it in GitHub Desktop.
Save netsatsawat/4e935e76aeb7d5dc16f54ce0bb21851d to your computer and use it in GitHub Desktop.
Code snippet for xgboost and evaluating the performance
xgb_clf = xgboost.XGBClassifier(random_state=SEED, n_jobs=-1, learning_rate=0.1,
max_depth=3, n_estimators=100)
_ = myUtilityFunction.prediction_evaluation(xgb_clf, X_train, X_test,
y_train, y_test, X_train.columns, "features")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment