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

    https://github.com/apache/spark/pull/7454#discussion_r35131292
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/mllib/clustering/LDAOptimizer.scala ---
    @@ -387,39 +387,32 @@ final class OnlineLDAOptimizer extends LDAOptimizer {
             }
     
             // Initialize the variational distribution q(theta|gamma) for the 
mini-batch
    -        var gammad = new Gamma(gammaShape, 1.0 / 
gammaShape).samplesVector(k).t // 1 * K
    -        var Elogthetad = digamma(gammad) - digamma(sum(gammad))     // 1 * 
K
    -        var expElogthetad = exp(Elogthetad)                         // 1 * 
K
    -        val expElogbetad = expElogbeta(::, ids).toDenseMatrix       // K * 
ids
    +        var gammad: BDV[Double] =
    --- End diff --
    
    Yep, fixed.


---
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