当前位置:网站首页>深度学习 | 三个概念: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 不同。

举个例子:
边栏推荐
- 有没有一段代码,让你为人类的智慧所折服
- The difference between timer and scheduledthreadpoolexecutor
- Leetcode (34) -- find the first and last positions of elements in a sorted array
- Oracle中已定义者身份执行函数AUTHID DEFINER与Postgresql行为的异同
- 2022 R1 fast opening pressure vessel operation test questions and answers
- Aaai22 | structural tagging and interaction modeling: a "slim" network for graph classification
- SWT / anr problem - SWT causes low memory killer (LMK)
- What are the common types of points mall games?
- AirServer最新Win64位个人版投屏软件
- 从第三次技术革命看企业应用三大开发趋势
猜你喜欢

What is the mosaic tailgate?

RPA: Bank digitalization, business process automation "a small step", and loan review efficiency "a big step"

2022年R1快开门式压力容器操作考题及答案

云信小课堂 | IM及音视频中常见的认知误区

Redis data types and application scenarios

notBlank 和 notEmpty

Istio, ebpf and rsocket Broker: in depth study of service grid

为什么PHP叫超文本预处理器

De PIP. Interne. CLI. Main Import main modulenotfounderror: No module named 'PIP'

2022 safety officer-c certificate examination question simulation examination question bank and simulation examination
随机推荐
2022年最佳智能家居开源系统:Alexa、Home Assistant、HomeKit生态系统介绍
Future trend and development of neural network Internet of things
想请教股票开户要认识谁?在线开户是安全么?
ARP报文头部格式和请求流程
What are the common types of points mall games?
Daily three questions 6.30
from pip._internal.cli.main import main ModuleNotFoundError: No module named ‘pip‘
ShanDong Multi-University Training #3
字典、哈希表、数组的概念
Glass mosaic
Behind sharing e-commerce: the spirit of CO creation, symbiosis, sharing, CO prosperity and win-win
The digital summit is popular, and city chain technology has triggered a new round of business transformation
2022安全员-C证考试题模拟考试题库及模拟考试
“35岁,公司老总,月薪2万送外卖“:时代抛弃你,连声再见都没有
Switch to software testing, knowing these four points is enough!
jpa手写sql,用自定义实体类接收
flutter Unable to load asset: assets/images/888.png
flutter Unable to load asset: assets/images/888. png
CKS CKA ckad change terminal to remote desktop
2022 safety officer-c certificate examination question simulation examination question bank and simulation examination

