text_plain_output_1.png
from sklearn.linear_model import LogisticRegression

logmodel = LogisticRegression()
logmodel.fit(X_train, y_train)

predictions = logmodel.predict(X_test)

logmodel.score(X_train, y_train)

logmodel.score(X_test, y_test)