MCPcopy 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
162def random_rotation(D):
163 rows = np.random.randn(D, D)
164 return orthonormalize_rows(rows)
165
166
167def hamming_dist(v1, v2):

Callers 1

opq_initializeFunction · 0.90

Calls 1

orthonormalize_rowsFunction · 0.85

Tested by

no test coverage detected