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:
Test the first part of the _listen_for_jobs method which polls
dataset/ETHPy150Open clips/pattern/pattern/vector/__init__.py/cluster--crossover with--dataset/ETHPy150Open bretth/django-pq/test_pq/test_queue.py/TestListenForJobs.test_listen_for_jobs