Skip to content

Commit

Permalink
Merge pull request #1389 from chinmayapancholi13/lda_update_logic_fix
Browse files Browse the repository at this point in the history
Update logic to set 'updatetype' variable in LdaModel.py
  • Loading branch information
menshikh-iv authored Jun 5, 2017
2 parents 214fff7 + 716ee4f commit 3e3150c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gensim/models/ldamodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,10 @@ def update(self, corpus, chunksize=None, decay=None, offset=None,

if update_every:
updatetype = "online"
if passes == 1:
updatetype += " (single-pass)"
else:
updatetype += " (multi-pass)"
updateafter = min(lencorpus, update_every * self.numworkers * chunksize)
else:
updatetype = "batch"
Expand Down

0 comments on commit 3e3150c

Please sign in to comment.