... scikit learn: scale


You can create the same plot by running this code;

from sklearn.neighbors import KNeighborsRegressor
from sklearn.datasets import load_boston

X, y = load_boston(return_X_y=True)

mod = KNeighborsRegressor().fit(X, y)
pred = mod.predict(X)
plt.scatter(pred, y)

Feedback? See an issue? Something unclear? Feel free to mention it here.

If you want to be kept up to date, consider signing up for the newsletter.