as i know knn find smallest distance from all samples.it means it is the nearest sample. but what if i want distance of my new data from all samples? how can I get for example 3 or 4 nearest samples to my new data?
Thank you
as i know knn find smallest distance from all samples.it means it is the
Share
K nearest neighbour? That means that you can find K nearest samples. You should read documentation carefully.
Example: