text_html_output_1.png
from sklearn.metrics import roc_auc_score

from xgboost import XGBClassifier

from xgboost import XGBClassifier
m = XGBClassifier(max_depth=2, gamma=11, eta=0.8, reg_alpha=0.7, reg_lambda=0.9, eval_metric=None)
m.fit(x_train, y_train)
pred = m.predict(x_test)

print('auc_train:', roc_auc_score(y_train, m.predict(x_train)))
print('auc_test:', roc_auc_score(y_test, pred))