Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dblalock/bolt
/ random_rotation
Function
random_rotation
experiments/python/utils.py:162–164 ·
view source on GitHub ↗
(D)
Source
from the content-addressed store, hash-verified
160
161
162
def
random_rotation(D):
163
rows = np.random.randn(D, D)
164
return
orthonormalize_rows(rows)
165
166
167
def
hamming_dist(v1, v2):
Callers
1
opq_initialize
Function · 0.90
Calls
1
orthonormalize_rows
Function · 0.85
Tested by
no test coverage detected