def associate(vectors, centroids):
    dists = square_distances(vectors, centroids)
    assoc = np.argmin(dists, axis=1)
    return assoc
Returns associations of vectors on centroids.
dataset/ETHPy150Open omangin/multimodal/multimodal/lib/vector_quantization.py/associate