wanji / sh

Spectral Hashing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spectral Hashing

This is a Python implementation of Y. Weiss's Spectral Hashing.

TIPs

  1. The eigen vectors solved by Python and MATLAB may have different sign, thus the binary code generated by Python and MATLAB might be different. However, the result of hammingDist(B, B) with B from either Python or MABLAB will get the same results.

  2. By manually adjust the sign of the eigen vectors in Python (trainSH), you can get the same binary code from Python as from MABLAB.

About

Spectral Hashing


Languages

Language:Python 81.6%Language:C 15.6%Language:Shell 2.7%