text_plain_output_1.png
from sklearn.linear_model import LinearRegression,LogisticRegression

from sklearn.model_selection import train_test_split,cross_val_score

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

lr.predict(x_test)

y_pred = lr.predict(x_test)

cross_val_score(lr, x_train, y_train, scoring='r2').mean()