diff --git a/gensim/models/ldamodel.py b/gensim/models/ldamodel.py index 439aeb91fb..f9fb09801a 100755 --- a/gensim/models/ldamodel.py +++ b/gensim/models/ldamodel.py @@ -693,7 +693,7 @@ def inference(self, chunk, collect_sstats=False): expElogthetad = expElogtheta[d, :] expElogbetad = self.expElogbeta[:, ids] - # The optimal phi_{dwk} is proportional to expElogthetad_k * expElogbetad_w. + # The optimal phi_{dwk} is proportional to expElogthetad_k * expElogbetad_kw. # phinorm is the normalizer. # TODO treat zeros explicitly, instead of adding epsilon? phinorm = np.dot(expElogthetad, expElogbetad) + epsilon