Machine Learning, Data Science, Pogramming, Statistics, Python.
label="Truth") plt.scatter(x_test, y_hat, label="Prediction") plt.xlabel("X") plt.ylabel("Y") plt.legend(loc="upper left") Prediction over the set of values We can clearly see that the model closely imitates the predicted values. This is a good thing. Note that we split the training and test sets