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

how to load minibatches one by one #3

Open
jengelman opened this issue Jun 26, 2017 · 1 comment
Open

how to load minibatches one by one #3

jengelman opened this issue Jun 26, 2017 · 1 comment

Comments

@jengelman
Copy link

Following up on #2, how would I load batches one at a time for soVB or moVB?

@michaelchughes
Copy link
Contributor

Sorry this hasn't been resolved yet! I've been out of the office but should have a more detailed answer by the end of the week.

The quick answer is that just you use bnpy's "DataIterator" object to break up an in-memory dataset into batches, you can use DataIteratorFromDisk to loop through pre-defined batches on disk (saved as .npy or .mat files).

https://github.com/bnpy/bnpy/blob/master/bnpy/data/DataIteratorFromDisk.py#L85

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

2 participants