批量大小迭代次数

🔄 批量大小迭代次数

根据数据集大小和 batch size 计算训练迭代次数。

📐 计算公式与说明

steps_per_epoch = ceil(样本数 / batch_size)
总步数 = steps × epochs

最后一批可能不满。