image_output_1.png
from sklearn.model_selection import train_test_split,cross_val_score

from sklearn.neighbors import KNeighborsRegressor

from sklearn.neighbors import KNeighborsRegressor
knn = KNeighborsRegressor(n_neighbors=9)
cross_val_score(knn, X, y, cv=5).mean()