(
txn_count, batch_count, batch_size, dimensions, perturbation_degree, id_offset=0
)
| 251 | |
| 252 | |
| 253 | def 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 | |
| 266 | def get_transaction_status(collection_name, transaction_id): |
nothing calls this directly
no test coverage detected