GitHub user hhbyyh opened a pull request:

    https://github.com/apache/spark/pull/10627

    [SPARK-12685] [MLlib] word2vec trainWordsCount gets overflow

    jira: https://issues.apache.org/jira/browse/SPARK-12685 
    the log of `word2vec` reports 
    trainWordsCount = -785727483
    during computation over a large dataset.
    
    Update the priority as it will affects the computation process.
    `alpha = learningRate * (1 - numPartitions * wordCount.toDouble / 
(trainWordsCount + 1))`

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/hhbyyh/spark w2voverflow

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/10627.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #10627
    
----
commit e2d83873c1bf1c94ef09b3f0db0a4795bed0d719
Author: Yuhao Yang <[email protected]>
Date:   2016-01-07T04:26:55Z

    fix overflow in word2vec

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to