Faiss: How to search the nearest with hamming distance rather than L2 distance?

Created on 9 May 2018  路  3Comments  路  Source: facebookresearch/faiss

Summary

Platform

I want to search the nearest with the hamming distance.
OS:

Faiss version:

Faiss compilation options:

Running on :

  • [ ] CPU
  • [ ] GPU

Reproduction instructions

enhancement question

Most helpful comment

Is there a tutorial for hamming distance?

All 3 comments

Binary vectors are not fully supported yet. See
https://github.com/facebookresearch/faiss/blob/master/tests/test_index.py#L496
for a workaround, but it is not optimal.

Binary vectors are supported now. Closing.

Is there a tutorial for hamming distance?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zoe-cheung picture zoe-cheung  路  3Comments

daniellevy picture daniellevy  路  3Comments

Ljferrer picture Ljferrer  路  3Comments

siva2k16 picture siva2k16  路  3Comments

cherryPotter picture cherryPotter  路  3Comments