MLlib - Naive Bayes Java example bug

2014-11-03 Thread Dariusz Kobylarz
Hi, I noticed a bug in the sample java code in MLlib - Naive Bayes docs page: http://spark.apache.org/docs/1.1.0/mllib-naive-bayes.html In the filter: |double accuracy = 1.0 * predictionAndLabel.filter(new FunctionTuple2Double, Double, Boolean() { @Override public Boolean

Re: MLlib - Naive Bayes Java example bug

2014-11-03 Thread Sean Owen
Yes, good catch. I also think the 1.0 * is suboptimal as a cast to double. I searched for similar issues and didn't see any. Open a PR -- I'm not even sure this is enough to warrant a JIRA? but feel free to as well. On Mon, Nov 3, 2014 at 6:46 PM, Dariusz Kobylarz darek.kobyl...@gmail.com wrote: