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

Reuse precalculated updated prior in ldamodel.update_dir_prior #2274

Merged
merged 1 commit into from
Dec 12, 2018

Conversation

horpto
Copy link
Contributor

@horpto horpto commented Nov 21, 2018

No description provided.

@menshikh-iv menshikh-iv changed the title reuse precalculated updated prior in ldamodel.update_dir_prior Reuse precalculated updated prior in ldamodel.update_dir_prior Dec 12, 2018
@menshikh-iv menshikh-iv merged commit 15c02c6 into piskvorky:develop Dec 12, 2018
else:
logger.warning("updated prior not positive")

logger.warning("updated prior is not positive")
Copy link
Owner

Choose a reason for hiding this comment

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

Unrelated to this PR, but: shouldn't this be an assert instead? What does such warning mean, what should the user do as a result?

This silent covering of a failure (prior is not actually updated, despite the function name) is unPythonic.

@horpto horpto deleted the reuse-calculated-values branch January 10, 2019 02:18
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.

None yet

3 participants