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

GSDMM class consumes the docs and vocab class #1

Open
rwalk opened this issue Feb 10, 2017 · 0 comments
Open

GSDMM class consumes the docs and vocab class #1

rwalk opened this issue Feb 10, 2017 · 0 comments

Comments

@rwalk
Copy link
Owner

rwalk commented Feb 10, 2017

The constructor for GSDMM with signature:

pub fn new(alpha:f64, beta:f64, K: usize, maxit:isize, vocab:HashSet<String>, docs:Vec<Vec<String>>) -> GSDMM

consumes the docs and vocab objects. This means that user will need to make copies of the data if they wish to use either of these vectors in subsequent processing.

Should be simple to refactor the interface to borrow these instead.

This was referenced Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant