当前位置:网站首页>tf. keras. layers. MaxPooling? D function
tf. keras. layers. MaxPooling? D function
2022-04-23 02:56:00 【Live up to your youth】
Maximum pool layer It is usually used to downsample data , Remove redundant information 、 Compress features .
1、tf.keras.layers.MaxPooling1D function
The function prototype
tf.keras.layers.MaxPool1D(pool_size=2,
strides=None,
padding='valid',
data_format='channels_last',
**kwargs
)
Function description
Parameters pool_size Indicates the size of the pooled window , Parameters strides Represents the moving step size , The default is None, Represents and pool_size It's the same size .
Be careful ,padding The meaning of parameters and the meaning of convolution layer padding The meaning of parameters is a little different , When padding by VALID, That is, when there is no filling , The size of the output tensor is ( The size of the input tensor -pool_size + 1 )/ strides, When padding by SAME when , The size of the output tensor is The size of the input tensor / strides.
2、tf.keras.layers.MaxPooling2D function
The function prototype
tf.keras.layers.MaxPool2D(pool_size=(2, 2),
strides=None,
padding='valid',
data_format=None,
**kwargs
)
Function description
The process of two-dimensional maximum pooling is shown in the figure above . Where the size of the input matrix is 4×4,pool_size by 2×2,strides by 2,padding The method is no filling , The size of the output matrix is 2×2. It can be seen that , The pooled input matrix , Only the higher part of the eigenvalue is retained . in other words , The pooling operation reduces the sampling rate of the image .
Parameters here pool_size It's a tuple (2, 2), Indicates that the size of the pooled window is 2×2.
3、tf.keras.layers.MaxPooling3D function
The function prototype
tf.keras.layers.MaxPool3D(pool_size=(2, 2, 2),
strides=None,
padding='valid',
data_format=None,
**kwargs
)
Function description
The usage scene of 3D pool layer is generally multi frame ( single / Multichannel ) Of frame data ( Video frame ), And the output is also multi frame , Sequential pair continuous k The entire channel of the frame performs the pooling operation at the same time ;
The meaning of each parameter of the function is the same as MaxPooling2D、MaxPooling1D The meaning of each parameter is similar .
版权声明
本文为[Live up to your youth]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220657127294.html
边栏推荐
- Slave should be able to synchronize with the master in tests/integration/replication-psync.tcl
- The penultimate K nodes in jz22 linked list
- How to build an integrated industrial Internet plus hazardous safety production management platform?
- JZ76 删除链表中重复的结点
- [unity3d] rolling barrage effect in live broadcasting room
- Regular object type conversion tool - Common DOM class
- Opencv fills the rectangle with a transparent color
- Six very 6 computer driver managers: what software is good for driver upgrade? Recommended by the best computer driver management software abroad
- Classification of technology selection (2022)
- 1215_ Hello world used by scons
猜你喜欢
Kubernetes study notes
Huashu "deep learning" and code implementation: 01 Linear Algebra: basic concepts + code implementation basic operations
The way to conquer C language
Machine learning (Zhou Zhihua) Chapter 14 probability graph model
Linux redis - redis database caching service
Solve the problem that PowerShell mining occupies 100% of cpu7 in win7
机器学习(周志华) 第十四章概率图模型
[wechat applet] set the bottom menu (tabbar) for the applet
grain rain
Fashion MNIST 数据集分类训练
随机推荐
Probabilistic model of machine learning
Face longitude:
[wechat applet] set the bottom menu (tabbar) for the applet
《信息系统项目管理师总结》第六章 项目人力资源管理
基于ele封装下拉菜单等组件
Decision tree principle of machine learning
grain rain
JDBC JDBC
TypeScript(1)
Niuke white moon race 5 [problem solving mathematics field]
JZ22 链表中倒数最后k个结点
Devil cold rice 𞓜 078 devil answers the market in Shanghai and Nanjing; Communication and guidance; Winning the country and killing and screening; The purpose of making money; Change other people's op
The difference between encodeuri and encodeuricomponent
Chapter V project quality management of information system project manager summary
Slave should be able to synchronize with the master in tests/integration/replication-psync. tcl
Chapter VII project communication management of information system project manager summary
基于Scrum进行创新和管理
Domestic lightweight Kanban scrum agile project management tool
windows MySQL8 zip安装
Those years can not do math problems, using pyhon only takes 1 minute?