Created
July 22, 2019 08:22
-
-
Save orcaman/330886b981199fe639db278d0710fb47 to your computer and use it in GitHub Desktop.
gmm_xgb_test.predict.py
This file contains 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
dsyn = xgb.DMatrix(syn[X_col], syn[y_col], feature_names=X_col) | |
y_pred = xgb_test.predict(dsyn, ntree_limit=xgb_test.best_iteration+1) | |
y_true = syn['class'].values | |
print(recall(y_pred, dsyn)) | |
print(precision(y_pred, dsyn)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment