text_plain_output_1.png
from sklearn.linear_model import LogisticRegression

from sklearn.metrics import roc_auc_score

from sklearn.linear_model import LogisticRegression
model = LogisticRegression()
model.fit(x_train, y_train)
preds = model.predict(x_test)

from sklearn.metrics import roc_auc_score
print('auc_train:', roc_auc_score(y_train, model.predict(x_train)))
print('auc_test:', roc_auc_score(y_test, preds))