Re: StreamingKMeans does not update cluster centroid locations

2016-02-19 Thread Bryan Cutler
n wherein I train the model using a >>>>>> receiver input >>>>>> stream in 4 sec batches >>>>>> >>>>>> val stream = ssc.receiverStream(receiver) //receiver gets new

Re: StreamingKMeans does not update cluster centroid locations

2016-02-19 Thread krishna ramachandran
am = ssc.receiverStream(receiver) //receiver gets new data >>>>> every >>>>> batch >>>>> model.trainOn(stream.map(Vectors.parse)) >>>>> If I use >>>>> model.latestModel.clusterCenters.foreach(println) >>>>> >>>

Re: StreamingKMeans does not update cluster centroid locations

2016-02-19 Thread krishna ramachandran
tion (when the streaming app started) >>>> >>>> when I use the model to predict cluster assignment with a labeled input >>>> the >>>> assignments change over time as expected >>>> >>>> testData.transform {rdd => >

Re: StreamingKMeans does not update cluster centroid locations

2016-02-19 Thread Bryan Cutler
) >>> >>> when I use the model to predict cluster assignment with a labeled input >>> the >>> assignments change over time as expected >>> >>> testData.transform {rdd => >>> rdd.map(lp => (lp.label, >&

Re: StreamingKMeans does not update cluster centroid locations

2016-02-19 Thread krishna ramachandran
e over time as expected >> >> testData.transform {rdd => >> rdd.map(lp => (lp.label, >> model.latestModel().predict(lp.features))) >> }.print() >> >> >> >> >> >> >> >> &

Re: StreamingKMeans does not update cluster centroid locations

2016-02-19 Thread Bryan Cutler
> > > > > > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/StreamingKMeans-does-not-update-cluster-centroid-locations-tp26275.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. > > --

StreamingKMeans does not update cluster centroid locations

2016-02-18 Thread ramach1776
(lp => (lp.label, model.latestModel().predict(lp.features))) }.print() -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/StreamingKMeans-does-not-update-cluster-centroid-locations-tp26275.html Sent from the Apache Spark User List mailing list arch