-
Notifications
You must be signed in to change notification settings - Fork 117
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
Problem with shape of Child model theta matrix #1038
Comments
This is expected behaviour for hierarchical models. In that case, ARTM adds 'pseudodocuments' to the collection and tries to factorize this new collection. Each pseudodocument is related to some topic of the parent model (since the distributions p(subtopic|doc) and p(subtopic|parent_topic) are similar computationally). If you run Also, for convergence/memory efficiency reasons the following patter is suggested:
The result is pandas DataFrame where the index is topic names, and columns are document names (without pseudodocuments). You are absolutely correct that this could be made more clear in the documentation. |
for 41 documents, it supposed to be 30x41, but instead 30x (41 + 10 = 51) returned
initial column names in theta contain only 0 (zeroes). So it’s like 0 0 0 0 0 0 0 0 0 0 0 0, than goes real columns 1, 2, 3, … Those zeroes are appended to the end with increasing num_collection_passes. So with num_collection_passes=90, theta shape is 30 x 941.
print(child_model.get_theta())
BIGARTM documentation says that theta supposed to be number of topics X number of documents.**
The text was updated successfully, but these errors were encountered: