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)