当前位置:网站首页>Deep learning | three concepts: epoch, batch, iteration
Deep learning | three concepts: epoch, batch, iteration
2022-07-01 23:35:00 【Rihe Princess】
- Epoch( period ):
When a complete data set passes through the neural network once and returns once , This process is called a time >epoch.( in other words , All training samples In the neural network all the A forward propagation and A back propagation )
A little more general , One Epoch Namely Train all training samples once The process of .However , When one Epoch The sample of ( That's all the training samples ) The number may be too large ( For computers ), You need to break it into small pieces , That is, share Multiple Batch To train .**
Batch( batch / A batch of samples ):
Divide the whole training sample into several Batch.Batch_Size( Batch size ):
The size of each batch of samples .Iteration( One iteration ):
Train one Batch Just once Iteration( This concept is similar to iterators in programming languages ).
- Why use more than one epoch?
It is not enough to pass a complete data set in a neural network at one time , And we need to pass the complete data set many times in the same neural network . But remember , We use a limited set of data , And we use an iterative process called gradient descent to optimize the learning process . As shown in the figure below . So just update it once or use one epoch It's not enough. .
With epoch increase in numbers , The number of updates of weights in neural networks is also increasing , The curve changes from under fitting to over fitting .
that , The problem is coming. , How many? epoch That's the right thing to do ?
Unfortunately , There is no right answer to this question . For different data sets , The answer is different . But the diversity of data can affect the right epoch The number of . such as , Only the black cat dataset , And data sets of cats in all colors .
Conversion relation :
actually , gradient descent The fundamental difference between the above methods lies in the Batch_Size Different .
for instance :
边栏推荐
猜你喜欢
软件架构的本质
2021 RoboCom 世界机器人开发者大赛-高职组初赛
Win 10 mstsc connect RemoteApp
物联网应用技术专业是属于什么类
Matplotlib common charts
认识--Matplotlib
Know --matplotlib
from pip._internal.cli.main import main ModuleNotFoundError: No module named ‘pip‘
from pip._internal.cli.main import main ModuleNotFoundError: No module named ‘pip‘
2022 R1 fast opening pressure vessel operation test questions and answers
随机推荐
Development trend and future direction of neural network Internet of things
Linux foundation - centos7 offline installation of MySQL
ADO.NET 之sqlConnection 对象使用摘要
认识--Matplotlib
jpa手写sql,用自定义实体类接收
JPA handwritten SQL, received with user-defined entity classes
Switch to software testing, knowing these four points is enough!
const // It is a const object...class nullptr_t
The third part of the construction of the defense system of offensive and defensive exercises is the establishment of a practical security system
[leetcode] length of the last word [58]
openwrt 开启KV漫游
2022 crane driver (limited to bridge crane) examination questions and simulation examination
ConcurrentSkipListMap——跳表原理
Applet form verification encapsulation
Postgresql源码(57)HOT更新为什么性能差距那么大?
Create Ca and issue certificate through go language
algolia 搜索需求,做的快自闭了...
Practical application and extension of plain framework
PostgreSQL notes (10) dynamically execute syntax parsing process
Is it safe to choose mobile phone for stock trading account opening in Shanghai?