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

Update for functionality with word and doc labels. Update to example notebook #10

Merged
merged 3 commits into from
Jan 12, 2018
Merged

Conversation

ryanjgallagher
Copy link
Collaborator

  1. Made the Python example notebook Python 3 compatible and made the examples a little more interesting. Also made sure to set seeds so it should be directly reproducible
  2. Added functionality so you can add labels to the doc-term matrix columns (terms) more easily after having trained a CorEx model.
  3. Added a new attribute to set labels for the rows (docs), including the ability to set the doc labels after training the CorEx topic model.
  4. Added a "get_top_docs" function which returns documents sorted according to probability or TC. I put a warning under TC because we're still trying to figure out the right way to think about it.

If someone could check to make sure I'm sorting documents correctly, that'd be great. I think everything else should be in order.

@gregversteeg gregversteeg merged commit 202cf22 into gregversteeg:master Jan 12, 2018
@gregversteeg
Copy link
Owner

Thanks! The sorting looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants