spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reth RM <reth.ik...@gmail.com>
Subject K-Mean retrieving Cluster Members
Date Mon, 17 Oct 2016 17:56:08 GMT
Could you please point me to sample code to retrieve the cluster members of
K mean?

The below code prints cluster centers. * I needed cluster members belonging
to each center.*



val clusters = KMeans.train(parsedData, numClusters, numIterations)
clusters.clusterCenters.foreach(println)

Mime
View raw message