image_output_1.png
from sklearn.linear_model import LogisticRegression

from sklearn.metrics import confusion_matrix, roc_auc_score, accuracy_score

clf = LogisticRegression(random_state=0).fit(X_train, y_train)

clf.score(X_train, y_train)

clf.score(X_test, y_test)

confusion_matrix(y_test, clf.predict(X_test))