First time here? Check out the FAQ!
Passing the labels for each sample does not seem like a practical way.Does the function accept a Kx1 array containing initial centroids?