java-LSH icon indicating copy to clipboard operation
java-LSH copied to clipboard

Signature

Open bertmsk opened this issue 10 years ago • 1 comments

I'm not sure if this is an issue but how to combine signatures? Each new instance of LSHSuperBit produces different signatures for the same vector (well it should do because of random hyperplanes). It means we have different "bucket hits" and therefore random cosine similarity for the same vector instead of "1" How to use/compare it then? Save random hyperplanes and use it for all vectors in database or there's a way to make a "fingerprint"?

bertmsk avatar Dec 26 '15 09:12 bertmsk

Hello,

Indeed, you can only compare signatures (or binning) computed by the same LSH instance. So you will have to serialize you LSH object. You can find an example here: https://github.com/tdebatty/java-LSH#serialization and there: https://github.com/tdebatty/java-LSH/blob/master/src/main/java/info/debatty/java/lsh/examples/SerializeExample.java

Don't hesitate to contact me if you have other issues...

Best regards,

tdebatty avatar Dec 26 '15 11:12 tdebatty