text_html_output_1.png
from sklearn import metrics

from sklearn.linear_model import LogisticRegression

logreg = LogisticRegression(solver='liblinear')
logreg.fit(X_train, y_train)
y_pred = logreg.predict(X_test)

print('Accuracy:', metrics.accuracy_score(y_test, y_pred))