Is there any way to initialize the centroids in k-means?
Passing the labels for each sample does not seem like a practical way.Does the function accept a Kx1 array containing initial centroids?
No. the centroids are calculated from the labels. (not the other way round)