text_plain_output_1.png
from xgboost import XGBClassifier

from xgboost import XGBClassifier
xgb = XGBClassifier(objective='binary:logistic')
xgb.fit(X_train, y_train)
pred = xgb.predict(X_val)
print(xgb.score(X_train, y_train))
print(xgb.score(X_val, y_val))