nmslib / hnswlib

Header-only C++/python library for fast approximate nearest neighbors
https://github.com/nmslib/hnswlib
Apache License 2.0
4.25k stars 623 forks source link

what's the difference between sift_1b.cpp and sift_test.cpp? #230

Open qxzhou1010 opened 4 years ago

qxzhou1010 commented 4 years ago

what's the difference between sift_1b.cpp and sift_test.cpp?If I want to test with my own data set, which one should I imitate?

yurymalkov commented 4 years ago

@qxzhou1010 The cpp files are using different datasets and distance functions. sift_1b.cpp uses on the 1 billion SIFT dataset and uses uint8-based distance. sift_test.cpp uses 1m sift dataset with float based distance.

I would recommend using sift_1b.cpp , as it was updated.