SciPy - Clustering and Distance
What will be the output of the following code snippet?
import numpy as np from scipy.cluster.vq import kmeans2 np.random.seed(0) data = np.random.rand(5, 2) centroids, labels = kmeans2(data, 2, minit='points') print(labels)
