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

I start testing lda-ruby gem. But for topic, it set default 20. How can I can change that one? I would like to test different topic number. #12

Closed
khinezarthwe opened this issue Nov 30, 2015 · 2 comments

Comments

@khinezarthwe
Copy link

No description provided.

@ealdent
Copy link
Owner

ealdent commented Nov 30, 2015

You should be able to set num_topics on the lda instance to the number of topics you wish to use. So let's say lda is an instance you created with Lda::Lda.new, then

lda.num_topics = 5
lda.em("random")

Please re-open this issue if that doesn't work.

Thanks!

@ealdent ealdent closed this as completed Nov 30, 2015
@khinezarthwe
Copy link
Author

Yes, thanks. Now it is work.

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

No branches or pull requests

2 participants