text_plain_output_1.png
from sklearn.ensemble import GradientBoostingClassifier

from sklearn.metrics import accuracy_score,precision_score,confusion_matrix,f1_score,classification_report

from sklearn.naive_bayes import GaussianNB

model = GaussianNB()
model.fit(X_train, y_train)
predicted = model.predict(X_test)

from sklearn.ensemble import GradientBoostingClassifier
gb = GradientBoostingClassifier(n_estimators=100, max_depth=2, random_state=0)
gb.fit(X_train, y_train)
predicted = gb.predict(X_test)
print('Accuracy score: ', accuracy_score(y_test, predicted))
print('Precision score: ', precision_score(y_test, predicted))
print(classification_report(y_test, predicted))