I want to use k-means for clustering. I have used the ClusteringComponents function but I said how can I control the max-iteration for k-means ?

  • $\begingroup$ You may try FindClusters[datapairs, Method -> {"Optimize", "Iterations" -> 1}] $\endgroup$ – Dr. belisarius Oct 28 '14 at 23:35
  • $\begingroup$ @belisarius, Is "Optimize" implents the k-means algorithm? It is not noted in the documentation! $\endgroup$ – BetterEnglish Oct 29 '14 at 0:14
  • $\begingroup$ That's what I meant by "try" :D $\endgroup$ – Dr. belisarius Oct 29 '14 at 0:31
  • $\begingroup$ You can adapt rm-rf's implementation here. Specifically you can change FixedPoint to Nest and specify the number of iterations. $\endgroup$ – C. E. Nov 2 '14 at 15:59
  • 1
    $\begingroup$ @Pickett, Thanks Pickett. I will share my code of Action recognition using DistanceTransform[] to be public $\endgroup$ – BetterEnglish Nov 2 '14 at 16:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.