dtype mismatch in sklearn on k-means
问题 I am attempting to run the first answer to this question Python Relating k-means cluster to instance however I am getting the following error: Traceback (most recent call last): File "test.py", line 16, in <module> model = sklearn.cluster.k_means(a, clust_centers) File "/usr/local/lib/python2.7/dist-packages/scikit_learn-0.14.1-py2.7-linux-i686.egg/sklearn/cluster/k_means_.py", line 267, in k_means x_squared_norms=x_squared_norms, random_state=random_state) File "/usr/local/lib/python2.7/dist