Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dblalock/bolt
/ hamming_dists
Function
hamming_dists
experiments/python/utils.py:171–172 ·
view source on GitHub ↗
(X, q)
Source
from the content-addressed store, hash-verified
169
170
171
def
hamming_dists(X, q):
172
return
np.array([hamming_dist(row, q)
for
row in X])
173
174
175
if
__name__ ==
'__main__'
:
Callers
nothing calls this directly
Calls
2
hamming_dist
Function · 0.85
array
Method · 0.80
Tested by
no test coverage detected