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

Function generate_random_vector

tests/load-test.py:189–190  ·  view source on GitHub ↗
(rows, dimensions, min_val, max_val)

Source from the content-addressed store, hash-verified

187
188# Function to generate a random vector with given constraints
189def generate_random_vector(rows, dimensions, min_val, max_val):
190 return np.random.uniform(min_val, max_val, (rows, dimensions)).tolist()
191
192
193def generate_random_vector_with_id(id, length):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected