keras-data-generator icon indicating copy to clipboard operation
keras-data-generator copied to clipboard

A question on the internal principle of DataGenerator

Open claudehang opened this issue 6 years ago • 3 comments

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 avatar Jul 10 '18 06:07 claudehang

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.

claudehang avatar Jul 10 '18 06:07 claudehang

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

YanBC avatar Feb 19 '19 15:02 YanBC

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

xingyi-li avatar Jul 04 '19 15:07 xingyi-li