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

Parameterize LdaModel variational magic numbers #174

Merged
merged 1 commit into from
Mar 2, 2014
Merged

Parameterize LdaModel variational magic numbers #174

merged 1 commit into from
Mar 2, 2014

Conversation

cscorley
Copy link
Contributor

This commit removes the VAR_MAXITER and VAR_THRESH constants from
LdaModel and allows each to be set when a new model is made, or
during a call to update(). They have been named iterations and
gamma_threshold.

Logging messages for the number of passes were changed to use the word
"pass" instead of "iteration", to avoid any confusion. Other logging
messages were also updated to include these vars.

This is a non-automatic fix for Issue #58.

This commit removes the VAR_MAXITER and VAR_THRESH constants from
LdaModel and allows each to be set when a new model is made, or
during a call to update(). They have been named iterations and
gamma_threshold.

Logging messages for the number of passes were changed to use the word
"pass" instead of "iteration", to avoid any confusion. Other logging
messages were also updated to include these vars.

This is a non-automatic fix for Issue #58.
@piskvorky
Copy link
Owner

Looks good, thanks Christopher!

It's not a fix for #58 -- that one is about automatically setting optimal values, based on actual training data.

piskvorky added a commit that referenced this pull request Mar 2, 2014
Parameterize LdaModel variational magic numbers
@piskvorky piskvorky merged commit 4de3523 into piskvorky:develop Mar 2, 2014
@cscorley
Copy link
Contributor Author

cscorley commented Mar 2, 2014

Yep. I was going to attempt setting optimal values, but it seems that some of my test documents do not converge after 10,000 iterations (yikes).

@cscorley cscorley deleted the lda-convergence-params branch March 2, 2014 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants