Yes it does stop if the algorithm converges in less than the specified
tolerance. You have a parameter to the Kmeans constructor called epsilon
which defaults to 1e4. If you have logging set to INFO you will get a log
message telling you how many iterations were run

-----------------------------------------------------
Robin East
/Spark GraphX in Action/ Michael S Malak and Robin East
http://manning.com/books/spark-graphx-in-action
<http://manning.com/books/spark-graphx-in-action>  



--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/Spark-K-means-number-of-Iterations-tp24664p24665.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to