text_html_output_1.png
from sklearn.neighbors import KNeighborsRegressor

x_train.shape

y_train.shape

knn_model = KNeighborsRegressor(n_neighbors=5, weights='uniform', algorithm='auto', leaf_size=30, p=2, metric='minkowski', metric_params=None, n_jobs=None)

model = knn_model.fit(x_train, y_train)

y_pred = model.predict(x_test)

y_pred[0:10]