text_plain_output_1.png
from sklearn import metrics

from sklearn.linear_model import LogisticRegression

import matplotlib.pyplot as plt

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

fpr, tpr, _ = metrics.roc_curve(y_test, y_pred)
plt.plot(fpr, tpr, label='data 1')
plt.legend(loc=4)
plt.show()