kayzhu / LSHash

A fast Python implementation of locality sensitive hashing.
MIT License
660 stars 158 forks source link

LSH family for Hamming distance #14

Open mollyStark opened 7 years ago

mollyStark commented 7 years ago

I've learned the Lsh algorithm recently. And I found your implementation. Quite useful to me! But as far as I know, there are different Lsh families for different distance measurement. It seems the index method you use is random planes for cosine distance, am I right? I'd like to ask you:

  1. is it necessary or right to expand the index function for different distance measurement?
  2. if it's right and necessary, will you or let me do it?