Skip to content

Commit

Permalink
update comment on line 690 (#3057)
Browse files Browse the repository at this point in the history
  • Loading branch information
yocen authored Apr 13, 2021
1 parent 840df94 commit 9f2a4ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gensim/models/ldamodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f2a4ac

Please sign in to comment.