You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for building NGT, this is excellent!
I'm wondering what would be the most efficient way to compute the approximate k nearest neighbours for all data points in the index in python. I see you have a batch_insert function but I do not see an equivalent batch_query function.
The equivalent code in e.g. scikit-learn would be
import sklearn.neighbors
distances, indices = sklearn.neighbors.NearestNeighbors(n_neighbors).fit(data).kneighbors(data)
The text was updated successfully, but these errors were encountered:
Although NGT does not have batch_query you mentioned, you only have to iterate search() with all of the registered objects after constructing an index.
Thanks for building NGT, this is excellent!
I'm wondering what would be the most efficient way to compute the approximate k nearest neighbours for all data points in the index in python. I see you have a
batch_insert
function but I do not see an equivalentbatch_query
function.The equivalent code in e.g. scikit-learn would be
The text was updated successfully, but these errors were encountered: