getting the cluster elements from kmeans run

2015-02-11 Thread Harini Srinivasan
Hi, Is there a way to get the elements of each cluster after running kmeans clustering? I am using the Java version. thanks

Re: getting the cluster elements from kmeans run

2015-02-11 Thread VISHNU SUBRAMANIAN
You can use model.predict(point) that will help you identify the cluster center and map it to the point. rdd.map(x = (x,model.predict(x))) Thanks, Vishnu On Wed, Feb 11, 2015 at 11:06 PM, Harini Srinivasan har...@us.ibm.com wrote: Hi, Is there a way to get the elements of each cluster after

Re: getting the cluster elements from kmeans run

2015-02-11 Thread Suneel Marthi
/KMeansUpdate.java Look at method fetchClusterCountsFromModel()     From: Harini Srinivasan har...@us.ibm.com To: user@spark.apache.org Sent: Wednesday, February 11, 2015 12:36 PM Subject: getting the cluster elements from kmeans run Hi, Is there a way to get the elements ofeach