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

Bug in initializeFromState(jFile) method of ParallelTopicModel class #84

Open
MansMeg opened this issue Nov 2, 2016 · 0 comments
Open

Comments

@MansMeg
Copy link

MansMeg commented Nov 2, 2016

There seems to be a bug in initializeFromState() method for the RTopicModel class. It seems like it does not read in the beta and alpha from the state file. This can be something that is due to an old jar in the mallet R package.

The result below is the result of the following testhat testsuite (where 0.1 is the set symmetric prior and 0.0835 is one of the learned alpha priors):
https://github.com/MansMeg/RMallet/blob/master/mallet/tests/testthat/test_mallet-io.R

* `new.doctopic.after.load.prior` not equal to `old.doctopic.prior`.
192540/192540 mismatches (average diff: 0.0303)
[1]  0.1 -  0.0835 == 0.0165
[2]  0.1 -  0.0835 == 0.0165
[3]  1.1 -  1.0835 == 0.0165
[4]  0.1 -  0.0835 == 0.0165
[5]  0.1 -  0.0835 == 0.0165
[6]  0.1 -  0.0835 == 0.0165
[7]  0.1 -  0
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

1 participant