Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dblalock/bolt
/ hamming_dist
Function
hamming_dist
experiments/python/utils.py:167–168 ·
view source on GitHub ↗
(v1, v2)
Source
from the content-addressed store, hash-verified
165
166
167
def
hamming_dist(v1, v2):
168
return
np.count_nonzero(v1 != v2)
169
170
171
def
hamming_dists(X, q):
Callers
1
hamming_dists
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected