I have this code (nn.py) to compute k (=5) nearest neighbors of n_queries d-dimensional vectors in a naive way using numpy
nn.py
n_queries
d
numpy