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

A question on the internal principle of DataGenerator #1

Open
claudehang opened this issue Jul 10, 2018 · 3 comments
Open

A question on the internal principle of DataGenerator #1

claudehang opened this issue Jul 10, 2018 · 3 comments

Comments

@claudehang
Copy link

Your code and blog are wonderful! Now I still have one question. In def __getitem__(self, index), the index argument comes from where? Could your explain it further? Many thanks!

@claudehang
Copy link
Author

And how should I understand this in your blog:
A common practice is to set this value to

samples
batch size

so that the model sees the training samples at most once per epoch.

@YanBC
Copy link

YanBC commented Feb 19, 2019

Same question here. I think index should be between zero and np.floor(len(self.list_IDs) / self.batch_size)

@xingyi-li
Copy link

+1, I didn’t find this until I went through errors.

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

3 participants