A general framework for similarity search.
git clone https://github.com/xinyandai/similarity-search.git
cd similarity-search/src
mkdir build
cd build
cmake ..
make all -j
./simple_lsh \
-t ../../data/netflix/netflix_base.fvecs \
-b ../../data/netflix/netflix_base.fvecs \
-q ../../data/netflix/netflix_query.fvecs \
-g ../../data/netflix/20_netflix_product_groundtruth.lshbox \
--transformed_dim 1 \
--num_bit 32
./rational_nr \
-t ../../data/netflix/netflix_base.fvecs \
-b ../../data/netflix/netflix_base.fvecs \
-q ../../data/netflix/netflix_query.fvecs \
-g ../../data/netflix/20_netflix_product_groundtruth.lshbox \
--transformed_dim 1 \
--num_bit 27\
--num_sub_data_set 32
./alsh \
-t ../../data/netflix/netflix_base.fvecs \
-b ../../data/netflix/netflix_base.fvecs \
-q ../../data/netflix/netflix_query.fvecs \
-g ../../data/netflix/20_netflix_product_groundtruth.lshbox \
--transformed_dim 3 \
--num_bit 32
./rational_alsh \
-t ../../data/netflix/netflix_base.fvecs \
-b ../../data/netflix/netflix_base.fvecs \
-q ../../data/netflix/netflix_query.fvecs \
-g ../../data/netflix/20_netflix_product_groundtruth.lshbox \
--transformed_dim 3 \
--num_bit 27 \
--num_sub_data_set 32
./sign_alsh \
-t ../../data/netflix/netflix_base.fvecs \
-b ../../data/netflix/netflix_base.fvecs \
-q ../../data/netflix/netflix_query.fvecs \
-g ../../data/netflix/20_netflix_product_groundtruth.lshbox \
--transformed_dim 2 \
--num_bit 32
./rational_sign \
-t ../../data/netflix/netflix_base.fvecs \
-b ../../data/netflix/netflix_base.fvecs \
-q ../../data/netflix/netflix_query.fvecs \
-g ../../data/netflix/20_netflix_product_groundtruth.lshbox \
--transformed_dim 2 \
--num_bit 27 \
--num_sub_data_set 32
Run Cross-Polytope-Simple-LSH
./cross_polytope_simple_lsh \
-t ../../data/netflix/netflix_base.fvecs \
-b ../../data/netflix/netflix_base.fvecs \
-q ../../data/netflix/netflix_query.fvecs \
-g ../../data/netflix/20_netflix_product_groundtruth.lshbox \
--transformed_dim 1 \
--kmeans_centers 256 \
--num_bit 4
Run Rational Cross-Polytope-Simple-LSH
./rational_cross_polytope \
-t ../../data/netflix/netflix_base.fvecs \
-b ../../data/netflix/netflix_base.fvecs \
-q ../../data/netflix/netflix_query.fvecs \
-g ../../data/netflix/20_netflix_product_groundtruth.lshbox \
--transformed_dim 1 \
--num_sub_data_set 16 \
--kmeans_centers 16 \
--num_bit 4