text_plain_output_1.png
from sklearn.linear_model import LogisticRegression

from sklearn.metrics import classification_report

from sklearn.metrics import confusion_matrix

from sklearn.metrics import confusion_matrix

classifier = LogisticRegression(random_state=41)
classifier.fit(X_train, y_train)

y_pred = classifier.predict(X_test)
from sklearn.metrics import confusion_matrix
cm = confusion_matrix(y_test, y_pred)
cm

from sklearn.metrics import classification_report
cr = classification_report(y_test, y_pred)
print(cr)