MCPcopy Create free account
hub / github.com/cosdata/cosdata / generate_random_vector_with_id

Function generate_random_vector_with_id

tests/load-test.py:193–195  ·  view source on GitHub ↗
(id, length)

Source from the content-addressed store, hash-verified

191
192
193def generate_random_vector_with_id(id, length):
194 values = np.random.uniform(-1, 1, length).tolist()
195 return {"id": id, "values": values}
196
197
198def perturb_vector(vector, perturbation_degree):

Callers 3

generate_vectorsFunction · 0.70
load-test.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected