Backto DL Index
文章目录
epoch : 所有训练集使用一次,叫一个 epoch
one epoch = one forward pass and one backward pass of all the training examples
对应代码中的参数是 n_epochs
.
batch_size : 一个 batch 中 samples 的个数
一般情况下,一个训练集中会有大量的samples,受限于内存大小通常无法一次加载,同时为了提高训练速度,会将整个training set分为n_batch
组,每组包含batch_size
个samples
train_set = batch_size * n_batch
batch size = the number of training examples in one forward/backward pass. The higher the batch size, the more memory space you’ll need.