SciPy - Clustering and Distance
What is the issue with this scipy K-means code snippet?
from scipy.cluster.vq import kmeans2 import numpy as np data = np.array([[1, 2], [3, 4], [5, 6]]) centroids, labels = kmeans2(data, 0) print(labels)
