averagepooling
Average pooling, or mean pooling, is a pooling operation used in convolutional neural networks to downsample feature maps. It partitions a feature map into regions and replaces each region with the average value of its elements. The common parameters are the pooling window size k x k, the stride s, and optionally padding p. For each channel, the output dimensions follow the usual pooling formulas, and each output location corresponds to the average of the k x k neighborhood in the input.
Mathematically, for a 2D input with a single channel, the output at position (i, j) is given
Compared with max pooling, average pooling replaces each region with its mean rather than its maximum. This
Applications and variants: average pooling is widely used for downsampling within CNNs and can be followed