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

aggregate_doc_topics has un-intuitive UI #155

Open
JaimieMurdock opened this issue Oct 11, 2017 · 0 comments
Open

aggregate_doc_topics has un-intuitive UI #155

JaimieMurdock opened this issue Oct 11, 2017 · 0 comments

Comments

@JaimieMurdock
Copy link
Member

Almost everytime I use aggregate_doc_topics I have to perform the following transformation to get an array of the topic distribution:

# v.aggregate_doc_topics returns an ndarray instead of just values.
theta = v.aggregate_doc_topics(all_ids)
theta = theta[np.argsort(theta['i'])]
theta = np.array(theta['value'])

I should add an aggregate_doc_topic_matrix to return this properly formatted list, or clean up our DataTable implementation. Since the second seems super hard, I'm going to go with the first.

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