pixelogik / NearPy

Python framework for fast (approximated) nearest neighbour search in large, high-dimensional data sets using different locality-sensitive hashes.
MIT License
759 stars 152 forks source link

Number of returned neighbors #49

Closed armintabari closed 7 years ago

armintabari commented 8 years ago

I have this problem that I always get 10 results from the engine.neighbours() function. It doesn't matter how many projections I have of what is the bucket size.

Am I missing something? Could not find any setting on number of neighbors returned.

amorgun commented 8 years ago

By default it returns 10 nearest neighbours, here is the default filters setup. You need to pass custom vector_filters in order to get other number of neighbours.