Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document minimum_probability=0.0 in LDA #2625

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions gensim/models/ldamodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

>>> from gensim.test.utils import common_texts
>>> from gensim.corpora.dictionary import Dictionary
>>> from gensim.models import LdaModel
>>>
>>> # Create a corpus from a list of texts
>>> common_dictionary = Dictionary(common_texts)
Expand Down Expand Up @@ -82,6 +83,13 @@

>>> lda = LdaModel(common_corpus, num_topics=50, alpha='auto', eval_every=5) # learn asymmetric alpha from data

All topic probability distributions can be obtained by setting minimum_probability param to 0.0. This might be
used for implementing custom distance algorithm.

.. sourcecode:: pycon

>>> lda = LdaModel(common_corpus, num_topics=50, minimum_probability=0.0)

"""

import logging
Expand Down