I need to generate K nearest neighbours given a datapoint. I read up the sklearn.neighbours module of sklearn but it generates neighbours between two sets of data. What I want is probably a list of 100 datapoints closest to the datapoint passed.
Any KNN algorithm shall anyways be finding these K datapoints under the hood. Is there any way these K points could be returned as output?
Here is my sample notebook.