Skip to content

Commit 1bdcd2e

Browse files
committed
minor fixes
1 parent cdef9f4 commit 1bdcd2e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -298,12 +298,12 @@ class PythonMLLibAPI extends Serializable {
298298
* @return A handle to java Word2VecModelWrapper instance at python side
299299
*/
300300
def trainWord2Vec(
301-
dataJRDD: JavaRDD[java.util.ArrayList[String]],
302-
vectorSize: Int,
303-
learningRate: Double,
304-
numPartitions: Int,
305-
numIterations: Int,
306-
seed: Long): Word2VecModelWrapper = {
301+
dataJRDD: JavaRDD[java.util.ArrayList[String]],
302+
vectorSize: Int,
303+
learningRate: Double,
304+
numPartitions: Int,
305+
numIterations: Int,
306+
seed: Long): Word2VecModelWrapper = {
307307
val data = dataJRDD.rdd.cache()
308308
val word2vec = new Word2Vec()
309309
.setVectorSize(vectorSize)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ class Word2VecModel private[mllib] (
437437
* Find synonyms of a word
438438
* @param word a word
439439
* @param num number of synonyms to find
440-
* @return array of (word, similarity)
440+
* @return array of (word, cosineSimilarity)
441441
*/
442442
def findSynonyms(word: String, num: Int): Array[(String, Double)] = {
443443
val vector = transform(word)

0 commit comments

Comments
 (0)