Skip to content

Commit

Permalink
fix style in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hhbyyh committed Mar 12, 2015
1 parent f6d47ca commit 02d0373
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ class LDA private (

/**
* Learn an LDA model using the given dataset, using online variational Bayes (VB) algorithm.
* Hoffman, Blei and Bach, “Online Learning for Latent Dirichlet Allocation.” NIPS, 2010.
*
* @param documents RDD of documents, which are term (word) count vectors paired with IDs.
* The term count vectors are "bags of words" with a fixed-size vocabulary
Expand Down Expand Up @@ -444,7 +443,7 @@ private[clustering] object LDA {
private val D = documents.count().toInt
val actualBatchNumber = Math.ceil(D.toDouble / batchSize).toInt

//Initialize the variational distribution q(beta|lambda)
// Initialize the variational distribution q(beta|lambda)
var lambda = getGammaMatrix(k, vocabSize) // K * V
private var Elogbeta = dirichlet_expectation(lambda) // K * V
private var expElogbeta = exp(Elogbeta) // K * V
Expand Down

0 comments on commit 02d0373

Please sign in to comment.