text_plain_output_1.png image_output_1.png
from sklearn.linear_model import LinearRegression

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

y_predict = lr.predict([[1.2], [3.3]])
y_predict

lr.score(x_test, y_test) * 100