I would like to not to predic centers, but to assign each object to an already defined center. How can I?
You might also want to take a look at the KMeans implementation in Scipy. The parameter minit
accepts a matrix and
interpret[s] the k parameter as a k by M (or length k array for one-dimensional data) array of initial centroids.