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

Randomly generated data as the data source #160

Open
eulerreich opened this issue Sep 20, 2015 · 1 comment
Open

Randomly generated data as the data source #160

eulerreich opened this issue Sep 20, 2015 · 1 comment

Comments

@eulerreich
Copy link
Contributor

Currently, if I want to randomly generate sequences of bits as input and some transform of these sequences as output, I'd have to do this all at once before training, for a fixed number of samples, to make a data source. Is there a way to generate these data on the fly, as the model is requesting them?

@nicholas-leonard
Copy link
Owner

@eulerreich Yes, you could implement a DataSet subclass that does this for you. Just over-write the sub(), index() or sample() method. These work respectively with the Sampler, ShuffleSampler and RandomSampler samplers.

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