text_plain_output_1.png
from sklearn.metrics import accuracy_score

from xgboost import XGBClassifier

from xgboost import XGBClassifier
classifier_xg = XGBClassifier()
classifier_xg.fit(X_train, Y_train)
Y_predxg = classifier_xg.predict(X_test)
print('Accuracy = ', accuracy_score(Y_test, Y_predxg) * 100, '%')