(id, length)
| 183 | |
| 184 | |
| 185 | def generate_random_vector_with_id(id, length): |
| 186 | values = np.random.uniform(-1, 1, length).tolist() |
| 187 | return {"id": str(id), "values": values} |
| 188 | |
| 189 | |
| 190 | def perturb_vector(vector, perturbation_degree): |
no outgoing calls
no test coverage detected