globalAveragePooling3dLayer
3-D全局平均池化层
Description
A 3-D global average pooling layer performs downsampling by computing the mean of the height, width, and depth dimensions of the input.
Creation
Properties
Examples
Tips
In an image classification network, you can use a
globalAveragePooling3dLayer
before the final fully connected layer to reduce the size of the activations without sacrificing performance. The reduced size of the activations means that the downstream fully connected layers will have fewer weights, reducing the size of your network.You can use a
globalAveragePooling3dLayer
towards the end of a classification network instead of afullyConnectedLayer
. Since global pooling layers have no learnable parameters, they can be less prone to overfitting and can reduce the size of the network. These networks can also be more robust to spatial translations of input data. You can also replace a fully connected layer with aglobalmaxpooling3dlayer.
instead. Whether aglobalmaxpooling3dlayer.
or aglobalAveragePooling3dLayer
更合适取决于您的数据集。要使用全局平均池代替完全连接的层,输入的大小
globalAveragePooling3dLayer
must match the number of classes in the classification problem
See Also
averagePooling3dLayer
|globalAveragePooling2dLayer
|convolution3dLayer
|maxPooling3dLayer
|globalmaxpooling3dlayer.