text_plain_output_1.png
from sklearn.linear_model import LogisticRegression

model_logistic = LogisticRegression()
model_logistic.fit(X_train, y_train)
print('Training accuracy: ', model_logistic.score(X_train, y_train))
print('Testing accuracy: ', model_logistic.score(X_test, y_test))