Hi All, In the KMeans example provided under mllib, it traverse the outcome of KMeansModel to know the cluster centers like this:
KMeansModel model = KMeans.train(points.rdd(), k, iterations, runs, KMeans.K_MEANS_PARALLEL()); System.out.println("Cluster centers:"); for (Vector center : model.clusterCenters()) { System.out.println(" " + center); } https://spark.apache.org/docs/1.3.0/mllib-clustering.html#k-means <https://spark.apache.org/docs/1.3.0/mllib-clustering.html#k-means> *How can I know the points contained in the particular cluster?* Regards Tapan -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/K-Means-Explanation-tp24787.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