Skip to content

Commit 57dc50d

Browse files
author
Liquan Pei
committed
code formatting
1 parent e4a04d3 commit 57dc50d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818

1919
package org.apache.spark.mllib.feature
2020

21-
import scala.util._
21+
import scala.util.{Random => Random}
2222
import scala.collection.mutable.ArrayBuffer
23-
import scala.collection.mutable.HashMap
2423
import scala.collection.mutable
2524

2625
import com.github.fommil.netlib.BLAS.{getInstance => blas}
@@ -373,4 +372,4 @@ object Word2Vec extends Serializable with Logging {
373372
minCount: Int): Word2VecModel = {
374373
new Word2Vec(size,startingAlpha, window, minCount).fit(input)
375374
}
376-
}
375+
}

mllib/src/test/scala/org/apache/spark/mllib/feature/Word2VecSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ class Word2VecSuite extends FunSuite with LocalSparkContext {
3737
assert(synons(0)._1 == "taiwan")
3838
assert(synons(1)._1 == "japan")
3939
}
40-
}
40+
}

0 commit comments

Comments
 (0)