如何理解 CNN 中的 batch size?
How to understand the batch size in CNN?
当使用Theano和conv3d2d.conv3d时,我发现信号的输入条件是
signals_shape=(batch_size, n_frame, n_in_maps, height, width)
我好像明白batch size是什么意思,也就是更新频率,但是为什么这里的batch size是一个维度呢?
batch_size
是您要用于此小批量的示例数。例如,如果您的 batch_size
是 50,则意味着您一次 training/testing 50 个示例。考虑一下您是否有一个二维矩阵来包含您的数据。它看起来像一个 excel 电子表格,其中每一行都是一个单独的示例,每一列都是该示例的 feature
。同样的事情发生在这里,只是在更高的维度。
当使用Theano和conv3d2d.conv3d时,我发现信号的输入条件是
signals_shape=(batch_size, n_frame, n_in_maps, height, width)
我好像明白batch size是什么意思,也就是更新频率,但是为什么这里的batch size是一个维度呢?
batch_size
是您要用于此小批量的示例数。例如,如果您的 batch_size
是 50,则意味着您一次 training/testing 50 个示例。考虑一下您是否有一个二维矩阵来包含您的数据。它看起来像一个 excel 电子表格,其中每一行都是一个单独的示例,每一列都是该示例的 feature
。同样的事情发生在这里,只是在更高的维度。