def cluster(method=KMEANS, vectors=[], **kwargs):
    if method == KMEANS:
        return k_means(vectors, **kwargs)
    if method == HIERARCHICAL:
        return hierarchical(vectors, **kwargs)

#--- K-MEANS ---------------------------------------------------------------------------------------
# k-means is fast but no optimal solution is guaranteed (random initialization).

# Initialization methods:
Clusters the given list of vectors using the k-means or hierarchical algorithm.
dataset/ETHPy150Open clips/pattern/pattern/vector/__init__.py/cluster