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

Function generate_vectors

tests/rps-test.py:253–263  ·  view source on GitHub ↗
(
    txn_count, batch_count, batch_size, dimensions, perturbation_degree, id_offset=0
)

Source from the content-addressed store, hash-verified

251
252
253def generate_vectors(
254 txn_count, batch_count, batch_size, dimensions, perturbation_degree, id_offset=0
255):
256 vectors = [
257 generate_random_vector_with_id(id + id_offset, dimensions)
258 for id in range(txn_count * batch_count * batch_size)
259 ]
260
261 # Shuffle the vectors
262 np.random.shuffle(vectors)
263 return vectors
264
265
266def get_transaction_status(collection_name, transaction_id):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected