text_plain_output_1.png
from sklearn.linear_model import LogisticRegression,LinearRegression

from sklearn.metrics import confusion_matrix, classification_report,accuracy_score

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

y_pred_train = lr.predict(X_train)
y_pred_train

linR = LinearRegression().fit(X_train, y_train)
y_pred_train = linR.predict(X_train)

print('Accuracy on Training: ' + str(accuracy_score(y_train, y_pred_train)))