Given a positive integer K and a test observation KNN model
for classification tries to estimate the conditional probability for class j as the fraction of points in
The KNN classifies the test observation
Given a positive integer K and a test observation KNN model
for regression returns as its prediction, the average of all the y values for each