Skip to content

Commit

Permalink
Add space after if
Browse files Browse the repository at this point in the history
  • Loading branch information
rnowling committed Sep 23, 2014
1 parent 30d20b3 commit bfa82ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class IDFSuite extends FunSuite with LocalSparkContext {
val idf = new IDF(minDocFreq = 1)
val model = idf.fit(termFrequencies)
val expected = Vectors.dense(Array(0, 3, 1, 2).map { x =>
if(x > 0) {
if (x > 0) {
math.log((m.toDouble + 1.0) / (x + 1.0))
} else {
0
Expand Down

0 comments on commit bfa82ec

Please sign in to comment.