[GitHub] spark issue #19372: [SPARK-22156][MLLIB] Fix update equation of learning rat...

2017-10-07 Thread nzw0301
Github user nzw0301 commented on the issue: https://github.com/apache/spark/pull/19372 Thank you for your kindful reviews! --- - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands

[GitHub] spark pull request #19372: [SPARK-22156][MLLIB] Fix update equation of learn...

2017-10-03 Thread nzw0301
Github user nzw0301 commented on a diff in the pull request: https://github.com/apache/spark/pull/19372#discussion_r142332793 --- Diff: mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala --- @@ -368,11 +371,12 @@ class Word2Vec extends Serializable with Logging

[GitHub] spark issue #19372: [SPARK-22156][MLLIB] Fix update equation of learning rat...

2017-10-02 Thread nzw0301
Github user nzw0301 commented on the issue: https://github.com/apache/spark/pull/19372 I updated the results of word2vec example based on this PR in the first comment. --- - To unsubscribe, e-mail: reviews-unsubscr

[GitHub] spark issue #19372: [SPARK-22156][MLLIB] Fix update equation of learning rat...

2017-10-02 Thread nzw0301
Github user nzw0301 commented on the issue: https://github.com/apache/spark/pull/19372 Thank you for your reviews, @LowikC. Like this? ```scala val totalWordsCounts = numIterations * trainWordsCount + 1 val numWordsProcessedInPreviousIterations = (k - 1

[GitHub] spark pull request #19372: [SPARK-22156][MLLIB] Fix update equation of learn...

2017-09-28 Thread nzw0301
Github user nzw0301 commented on a diff in the pull request: https://github.com/apache/spark/pull/19372#discussion_r141609260 --- Diff: mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala --- @@ -368,9 +368,9 @@ class Word2Vec extends Serializable with Logging

[GitHub] spark issue #19372: [SPARK-22156][MLLIB] Fix update equation of learning rat...

2017-09-28 Thread nzw0301
Github user nzw0301 commented on the issue: https://github.com/apache/spark/pull/19372 Thank you for your comment, @LowikC. You are right, my PR code is incorrect. Correct update formula is ```scala alpha = learningRate * (1 - numPartitions

[GitHub] spark issue #19372: [MLLIB] Fix update equation of learning rate in Word2Vec...

2017-09-28 Thread nzw0301
Github user nzw0301 commented on the issue: https://github.com/apache/spark/pull/19372 Thank you for your comment, @srowen. I'll create an isuen on JIRA. --- - To unsubscribe, e-mail: reviews-unsubscr

[GitHub] spark pull request #19372: [MLLIB] Fix update equation of learning rate in W...

2017-09-27 Thread nzw0301
GitHub user nzw0301 opened a pull request: https://github.com/apache/spark/pull/19372 [MLLIB] Fix update equation of learning rate in Word2Vec.scala ## What changes were proposed in this pull request? Current equation of learning rate is incorrect when `numIterations` >