application_vnd.jupyter.stderr_output_1.png
from sklearn.linear_model import LinearRegression

import matplotlib.pyplot as plt

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

y_pred = regressor.predict(x_test)
y_pred

a = x_test
b = y_test
c = x_test
d = y_pred

a = x_test
b = y_test
c = x_test
d = y_pred
plt.scatter(a, b)
plt.plot(c, d)
plt.grid()
plt.show()