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

Function generate_random_vector

tests/rps-test.py:181–182  ·  view source on GitHub ↗
(rows, dimensions, min_val, max_val)

Source from the content-addressed store, hash-verified

179
180# Function to generate a random vector with given constraints
181def generate_random_vector(rows, dimensions, min_val, max_val):
182 return np.random.uniform(min_val, max_val, (rows, dimensions)).tolist()
183
184
185def generate_random_vector_with_id(id, length):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected