Created
May 19, 2019 18:20
-
-
Save netsatsawat/4e935e76aeb7d5dc16f54ce0bb21851d to your computer and use it in GitHub Desktop.
Code snippet for xgboost and evaluating the performance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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