text_plain_output_1.png
from sklearn.linear_model import LogisticRegression

from sklearn.naive_bayes import MultinomialNB

import matplotlib.pyplot as plt

log = LogisticRegression()

log.fit(x_train, y_train)

log_score = log.score(x_test, y_test)
log_score

naive = MultinomialNB()

naive.fit(x_train, y_train)

naive_score = naive.score(x_test, y_test)
naive_score

plt.hist(log_score, color='Red')
plt.hist(naive_score, color='Green')
plt.title('Logistic vs Naive Bayes Algorithm')
plt.show()