Re: K-Mean retrieving Cluster Members
or alternatively this should work (assuming parsedData is an RDD[Vector]): clusters.predict(parsedData) > On 18 Oct 2016, at 00:35, Reth RM wrote: > > I think I got it > > parsedData.foreach( > new VoidFunction() { > @Override > p
Re: K-Mean retrieving Cluster Members
I think I got it parsedData.foreach( new VoidFunction() { @Override public void call(Vector vector) throws Exception { System.out.println(clusters.predict(vector)); } } );