当前位置:网站首页>深度学习 | 三个概念:Epoch, Batch, Iteration
深度学习 | 三个概念:Epoch, Batch, Iteration
2022-07-01 23:18:00 【日和公主】

- Epoch(时期):
当一个完整的数据集通过了神经网络一次并且返回了一次,这个过程称为一次>epoch。(也就是说,所有训练样本在神经网络中都 进行了一次正向传播 和一次反向传播 )
再通俗一点,一个Epoch就是将所有训练样本训练一次的过程。然而,当一个Epoch的样本(也就是所有的训练样本)数量可能太过庞大(对于计算机而言),就需要把它分成多个小块,也就是就是分成多个Batch 来进行训练。**
Batch(批 / 一批样本):
将整个训练样本分成若干个Batch。Batch_Size(批大小):
每批样本的大小。Iteration(一次迭代):
训练一个Batch就是一次Iteration(这个概念跟程序语言中的迭代器相似)。
- 为什么要使用多于一个epoch?
在神经网络中传递完整的数据集一次是不够的,而且我们需要将完整的数据集在同样的神经网络中传递多次。但请记住,我们使用的是有限的数据集,并且我们使用一个迭代过程即梯度下降来优化学习过程。如下图所示。因此仅仅更新一次或者说使用一个epoch是不够的。
随着epoch数量增加,神经网络中的权重的更新次数也在增加,曲线从欠拟合变得过拟合。
那么,问题来了,几个epoch才是合适的呢?
不幸的是,这个问题并没有正确的答案。对于不同的数据集,答案是不一样的。但是数据的多样性会影响合适的epoch的数量。比如,只有黑色的猫的数据集,以及有各种颜色的猫的数据集。
换算关系:

实际上,梯度下降的几种方式的根本区别就在于上面公式中的 Batch_Size 不同。

举个例子:
边栏推荐
- Experience of practical learning of Silicon Valley products
- [applet] realize the left and right [sliding] list through the scroll view component
- 2022年R1快开门式压力容器操作考题及答案
- SWT/ANR问题--SWT 导致 low memory killer(LMK)
- Linux foundation - centos7 offline installation of MySQL
- De PIP. Interne. CLI. Main Import main modulenotfounderror: No module named 'PIP'
- Future trend and development of neural network Internet of things
- 神经网络物联网的发展趋势和未来方向
- 共享电商的背后: 共创、共生、共享、共富,共赢的共富精神
- Three development trends of enterprise application from the perspective of the third technological revolution
猜你喜欢

Glass mosaic

2021 RoboCom 世界机器人开发者大赛-高职组初赛

物联网开发零基础教程

有没有一段代码,让你为人类的智慧所折服

软件架构的本质

The digital summit is popular, and city chain technology has triggered a new round of business transformation

Win 10 mstsc connect RemoteApp

玻璃马赛克

from pip._internal.cli.main import main ModuleNotFoundError: No module named ‘pip‘

2022安全员-C证考试题模拟考试题库及模拟考试
随机推荐
上海炒股开户选择手机办理安全吗?
[LeetCode] 最后一个单词的长度【58】
Oracle中已定义者身份执行函数AUTHID DEFINER与Postgresql行为的异同
小程序表单校验封装
What is mosaic?
Concepts of dictionary, hash table and array
Linux foundation - centos7 offline installation of MySQL
Understanding threads
物联网技术应用属于什么专业分类
【必会】BM41 输出二叉树的右视图【中等+】
What are the common types of points mall games?
CADD course learning (3) -- target drug interaction
Create Ca and issue certificate through go language
问题随记 —— file /usr/share/mysql/charsets/README from install of MySQL-server-5.1.73-1.glibc23.x86_64 c
Aaai22 | structural tagging and interaction modeling: a "slim" network for graph classification
Experience of practical learning of Silicon Valley products
Redis AOF日志
Timer和ScheduledThreadPoolExecutor的区别
The third part of the construction of the defense system of offensive and defensive exercises is the establishment of a practical security system
MySQL binlog cleanup

