Skip to content

Commit 583e173

Browse files
committed
fix indentation
1 parent 23d40c4 commit 583e173

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

mllib/src/main/scala/org/apache/spark/mllib/clustering/LDAModel.scala

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ class LocalLDAModel private[clustering] (
273273

274274
/**
275275
* Estimate the variational likelihood bound of from `documents`:
276-
* log p(documents) >= E_q[log p(documents)] - E_q[log q(documents)]
276+
* log p(documents) >= E_q[log p(documents)] - E_q[log q(documents)]
277277
* This bound is derived by decomposing the LDA model to:
278-
* log p(documents) = E_q[log p(documents)] - E_q[log q(documents)] + D(q|p)
278+
* log p(documents) = E_q[log p(documents)] - E_q[log q(documents)] + D(q|p)
279279
* and noting that the KL-divergence D(q|p) >= 0.
280280
*
281281
* See Equation (16) in original Online LDA paper, as well as Appendix A.3 in the JMLR version of
@@ -290,13 +290,13 @@ class LocalLDAModel private[clustering] (
290290
* @param vocabSize number of unique terms in the entire test corpus
291291
*/
292292
private def logLikelihoodBound(
293-
documents: RDD[(Long, Vector)],
294-
alpha: Vector,
295-
eta: Double,
296-
lambda: BDM[Double],
297-
gammaShape: Double,
298-
k: Int,
299-
vocabSize: Long): Double = {
293+
documents: RDD[(Long, Vector)],
294+
alpha: Vector,
295+
eta: Double,
296+
lambda: BDM[Double],
297+
gammaShape: Double,
298+
k: Int,
299+
vocabSize: Long): Double = {
300300
val brzAlpha = alpha.toBreeze.toDenseVector
301301
// transpose because dirichletExpectation normalizes by row and we need to normalize
302302
// by topic (columns of lambda)

0 commit comments

Comments
 (0)