From 0313c0cbf8d41b9bcfb0536df253f6af0f1398f7 Mon Sep 17 00:00:00 2001 From: leahmcguire Date: Wed, 21 Jan 2015 09:43:00 -0800 Subject: [PATCH] fixed style error in NaiveBayes.scala --- .../org/apache/spark/mllib/classification/NaiveBayes.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mllib/src/main/scala/org/apache/spark/mllib/classification/NaiveBayes.scala b/mllib/src/main/scala/org/apache/spark/mllib/classification/NaiveBayes.scala index cadfe85c76a19..4ec4bdf9f18a6 100644 --- a/mllib/src/main/scala/org/apache/spark/mllib/classification/NaiveBayes.scala +++ b/mllib/src/main/scala/org/apache/spark/mllib/classification/NaiveBayes.scala @@ -59,8 +59,7 @@ class NaiveBayesModel private[mllib] ( private val brzNegTheta: Option[BDM[Double]] = model match { case NaiveBayesModels.Multinomial => None case NaiveBayesModels.Bernoulli => - val negTheta = brzLog((brzExp(brzTheta.copy) :*= (-1.0)) :+= 1.0) - //((x) => math.log(1.0 - math.exp(x)) + val negTheta = brzLog((brzExp(brzTheta.copy) :*= (-1.0)) :+= 1.0) // log(1.0 - exp(x)) Option(negTheta) }