image_output_1.png
from sklearn.linear_model import LogisticRegression,LinearRegression

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

y_pred_train = lr.predict(X_train)
y_pred_train