Python framework for fast (approximated) nearest neighbour search in large, high-dimensional data sets using different locality-sensitive hashes.
763
stars
151
forks
source link
Use set instead of list in redis storage to prevent duplicate vectors #45
Closed
adityapatadia closed 8 years ago
I suggest using
sadd
instead ofrpush
at https://github.com/pixelogik/NearPy/blob/master/nearpy/storage/storage_redis.py#L87Also we should use
smembers
instead oflrange
https://github.com/pixelogik/NearPy/blob/master/nearpy/storage/storage_redis.py#L94This will prevent duplicate vectors.