From 9f2a4acae21a9054213a6ba1afb043f9bd68b574 Mon Sep 17 00:00:00 2001 From: ElienChase Date: Tue, 13 Apr 2021 12:59:10 +0800 Subject: [PATCH] update comment on line 690 (#3057) --- gensim/models/ldamodel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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