vi3k6i5 / GuidedLDA

semi supervised guided topic model with custom guidedLDA
Mozilla Public License 2.0
497 stars 109 forks source link

Initialize Random State #5

Closed mbosland closed 6 years ago

mbosland commented 6 years ago

When I set a random_state and run my program multiple times, I receive varying results each time the program is run. I'm looking at counts of documents per seeded topic to see the variations.

I think we need to initialize the random_state with random.seed(random_state) in the init function. When I did that locally, results are repeatable.

Does that make sense or am I missing something?

vi3k6i5 commented 6 years ago

@mbosland Looking into it.

vi3k6i5 commented 6 years ago

Issue replicated.

vi3k6i5 commented 6 years ago

Fix Deployed in version: guidedlda-2.0.0.dev22.tar.gz

vi3k6i5 commented 6 years ago

@mbosland Thanks for pointing it out. I had missed that part. How are you liking the library ?

mbosland commented 6 years ago

The library is fantastic! Insanely handy and the interface works just like I expect.