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 running kmeans
> clustering? I am using the Java version.
>
>
> ------------------------------------------------
> thanks
>
>

Reply via email to