Re: problem with kafka createDirectStream ..

2016-12-09 Thread Debasish Ghosh
oops .. it's 0.10.0 .. sorry for the confusion .. On Fri, Dec 9, 2016 at 10:07 PM, Debasish Ghosh <ghosh.debas...@gmail.com> wrote: > My assembly contains the 0.10.1 classes .. Here are the dependencies > related to kafka & spark that my assembly has .. > > libra

Re: problem with kafka createDirectStream ..

2016-12-09 Thread Debasish Ghosh
inear space spanned by the top 2 principal > > // components, keeping the label > > rdd.map(p => (p._1, pca.transform(p._2))) > > } > > } > > > > However if I remove the transform call, I can process everything > correctly. > > > > Any help will be most welcome .. > > > > regards. > > - Debasish > > > > > > > > -- > > View this message in context: http://apache-spark-user-list. > 1001560.n3.nabble.com/problem-with-kafka-createDirectStream-tp28190.html > > Sent from the Apache Spark User List mailing list archive at Nabble.com. > > > > - > > To unsubscribe e-mail: user-unsubscr...@spark.apache.org > > > -- Debasish Ghosh http://manning.com/ghosh2 http://manning.com/ghosh Twttr: @debasishg Blog: http://debasishg.blogspot.com Code: http://github.com/debasishg

problem with kafka createDirectStream ..

2016-12-09 Thread Debasish Ghosh
educe to 2 dimensions val pca = new PCA(2).fit(rdd.map(_._2)) // Project vectors to the linear space spanned by the top 2 principal // components, keeping the label rdd.map(p => (p._1, pca.transform(p._2))) } } However if I remove the transform call, I can process everything correctly. Any help will be most welcome .. regards. -- Debasish Ghosh

Re: using StreamingKMeans

2016-11-19 Thread Debasish Ghosh
few weeks > or months before running offline training. > > Am I missing something? > > On Sun, Nov 20, 2016 at 10:29 AM, Debasish Ghosh <ghosh.debas...@gmail.com > > wrote: > > Looking for alternative suggestions in case where we have 1 continuous > stream of data.

Re: using StreamingKMeans

2016-11-19 Thread Debasish Ghosh
the decay factor that u specify for StramingKMeans. Suggestions ? regards. On Sun, 20 Nov 2016 at 3:51 AM, ayan guha <guha.a...@gmail.com> wrote: > Curious why do you want to train your models every 3 secs? > On 20 Nov 2016 06:25, "Debasish Ghosh" <ghosh.debas...@gmail.com

Re: using StreamingKMeans

2016-11-19 Thread Debasish Ghosh
gets an empty > > collection. Things start working ok when data starts coming back to the > > stream. But is this the way to go ? > > > > any suggestion will be welcome .. > > > > regards. > > > > > > > > -- > > View this message

outlier detection using StreamingKMeans

2016-11-17 Thread Debasish Ghosh
? Any idiomatic way to handle this ? Or is StreamingKMeans is not the right choice to do anomaly detection in an online setting .. any suggestion will be welcome .. regards. -- Debasish Ghosh http://manning.com/ghosh2 http://manning.com/ghosh Twttr: @debasishg Blog: http

Incremental model update

2016-09-27 Thread Debasish Ghosh
? regards. -- Debasish Ghosh http://manning.com/ghosh2 http://manning.com/ghosh Twttr: @debasishg Blog: http://debasishg.blogspot.com Code: http://github.com/debasishg