4 ms·
locality sensitive hashing is the typical method here. You generate a ton of random vectors. These vectors automatically give rise to infinite hyperplanes (the
by anon291 4y ago
locality sensitive hashing is the typical method here. You generate a ton of random vectors. These vectors automatically give rise to infinite hyperplanes (the one they are normal to). Each vector/hyperplane is associated with a bit in the final hash. Then, each input vector is hashed by setting the bit if it's on one side of the hyperplane or unsetting it if it's on the other. The hamming distance between two vectors is now correlated with the cosine similarity. Or something like that.
- kekub 4y agoThat's the reason I come to HN every day. Thanks for the explanation, which probably could not be more compact.
- justjonathan 4y agoThat’s so smart! I read stuff like that and I’m just in awe of the cleverness.