Skip to content

Commit

Permalink
Merge pull request #1382 from chinmayapancholi13/lda_partial_fit
Browse files Browse the repository at this point in the history
Added note about training mode in 'partial_fit'
  • Loading branch information
menshikh-iv authored Jun 5, 2017
2 parents 89ddb4c + 9fc229f commit eefca37
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gensim/sklearn_integration/sklearn_wrapper_gensim_ldamodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ def get_topic_dist(self, bow, minimum_probability=None, minimum_phi_value=None,
def partial_fit(self, X):
"""
Train model over X.
By default, 'online (single-pass)' mode is used for training the LDA model.
Configure `passes` and `update_every` params at init to choose the mode among :
- online (single-pass): update_every != None and passes == 1
- online (multi-pass): update_every != None and passes > 1
- batch: update_every == None
"""
if sparse.issparse(X):
X = matutils.Sparse2Corpus(X)
Expand Down

0 comments on commit eefca37

Please sign in to comment.