text_plain_output_1.png
from sklearn.metrics import accuracy_score

import xgboost

clf = xgboost.XGBClassifier()
clf.fit(xtrain, ytrain)

pred = clf.predict(xtest)

acc = accuracy_score(ytest, pred)
print('%0.2f%%' % (acc * 100.0))