text_plain_output_1.png
from sklearn.linear_model import LinearRegression,LogisticRegression

from sklearn.metrics import accuracy_score,r2_score

lr = LinearRegression()
lr.fit(x_train, y_train)

lr.predict(x_test)

y_pred = lr.predict(x_test)

r2_score(y_pred, y_test)