Github user buryat commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19266#discussion_r139616346
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala ---
    @@ -344,7 +344,7 @@ class Word2Vec extends Serializable with Logging {
         val newSentences = sentences.repartition(numPartitions).cache()
         val initRandom = new XORShiftRandom(seed)
     
    -    if (vocabSize.toLong * vectorSize >= Int.MaxValue) {
    +    if (vocabSize.toLong * vectorSize >= Int.MaxValue - 8) {
    --- End diff --
    
    I think this should be just `>`


---

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

Reply via email to