我们可以在同一时期发送相同的数据点吗?

Can we send same datapoints in same epoch?

如果我们将 steps_per_epoch(在 ImageDataGenerator 中)设置为高于可能的批次总数 (total_samples/batch_Size)。模型会从一开始就重新访问相同的数据点还是会忽略?

例如:

据我所知,steps_per_epoch 独立于 'real' 纪元(即 number_of_inputs/batch_size)。让我们使用一个与您想知道的相似的例子,有 2000 个数据点和 batch_size of 20(这意味着 2000/20 = 100 个步骤用于一个 'real' 纪元):

  • 如果你设置steps_per_epoch = 1000:Keras要求一个1000个批次的循环,这基本上意味着10个'real'个epochs(或整个数据遍历的10次)。
  • 如果设置steps_per_epoch = 50:Keras要求循环50个batch,下一个循环访问一个'real'个epoch的剩余50个batch。