Skip to content

Commit

Permalink
fixed style error in NaiveBayes.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
leahmcguire committed Jan 21, 2015
1 parent 4a3676d commit 0313c0c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 0313c0c

Please sign in to comment.