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

Fix default -> auto prior parameter in documentation for lda-related models #2156

Merged
merged 9 commits into from
Aug 13, 2018
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gensim/models/ldamodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def __init__(self, corpus=None, num_topics=100, id2word=None,
Alternatively default prior selecting strategies can be employed by supplying a string:

* 'asymmetric': Uses a fixed normalized asymmetric prior of `1.0 / topicno`.
* 'default': Learns an asymmetric prior from the corpus.
* 'auto': Learns an asymmetric prior from the corpus.
eta : {float, np.array, str}, optional
A-priori belief on word probability, this can be:

Expand Down Expand Up @@ -531,7 +531,7 @@ def init_dir_prior(self, prior, name):

* an 1D array of length equal to the number of expected topics,
* 'asymmetric': Uses a fixed normalized assymetric prior of `1.0 / topicno`.
* 'default': Learns an assymetric prior from the corpus.
* 'auto': Learns an assymetric prior from the corpus.
name : {'alpha', 'eta'}
Whether the `prior` is parameterized by the alpha vector (1 parameter per topic)
or by the eta (1 parameter per unique term in the vocabulary).
Expand Down
2 changes: 1 addition & 1 deletion gensim/models/ldamulticore.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def __init__(self, corpus=None, num_topics=100, id2word=None, workers=None,
Alternatively default prior selecting strategies can be employed by supplying a string:

* 'asymmetric': Uses a fixed normalized assymetric prior of `1.0 / topicno`.
* 'default': Learns an assymetric prior from the corpus.
* 'auto': Learns an assymetric prior from the corpus.
eta : {float, np.array, str}, optional
A-priori belief on word probability, this can be:

Expand Down
2 changes: 1 addition & 1 deletion gensim/sklearn_api/atmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def __init__(self, num_topics=100, id2word=None, author2doc=None, doc2author=Non
Alternatively default prior selecting strategies can be employed by supplying a string:

* 'asymmetric': Uses a fixed normalized assymetric prior of `1.0 / topicno`.
* 'default': Learns an assymetric prior from the corpus.
* 'auto': Learns an assymetric prior from the corpus.
eta : {float, np.array, str}, optional
A-priori belief on word probability, this can be:

Expand Down
2 changes: 1 addition & 1 deletion gensim/sklearn_api/ldamodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def __init__(self, num_topics=100, id2word=None, chunksize=2000, passes=1, updat
Alternatively default prior selecting strategies can be employed by supplying a string:

* 'asymmetric': Uses a fixed normalized assymetric prior of `1.0 / topicno`.
* 'default': Learns an assymetric prior from the corpus.
* 'auto': Learns an assymetric prior from the corpus.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assymetric => asymmetric (here and elsewhere)

eta : {float, np.array, str}, optional
A-priori belief on word probability, this can be:

Expand Down