Skip to content

Latest commit

 

History

History
66 lines (46 loc) · 2.61 KB

poolinglayers.md

File metadata and controls

66 lines (46 loc) · 2.61 KB
layout
default

Pooling layer

Accepts as input:

  • feature vector of size
    <a href="http://www.codecogs.com/eqnedit.php?latex=W_1&space;\times&space;H_1&space;\times&space;D_1" target="_blank"><img src="http://latex.codecogs.com/gif.latex?W_1&space;\times&space;H_1&space;\times&space;D_1" title="W_1 \times H_1 \times D_1" /></a>
    
    </li>
    <li>size of neighbourhood
    
    <a href="http://www.codecogs.com/eqnedit.php?latex=F" target="_blank"><img src="http://latex.codecogs.com/gif.latex?F" title="F" /></a>
    
    </li>
    <li>stride S</li>
    
Outputs another feature vector of size

, where Accepts as input:

  • <a href="http://www.codecogs.com/eqnedit.php?latex=W_2&space;=&space;\frac{W_1&space;-&space;F}{S}&space;&plus;&space;1&plus;&space;1" target="_blank"><img src="http://latex.codecogs.com/gif.latex?W_2&space;=&space;\frac{W_1&space;-&space;F}{S}&space;&plus;&space;1" title="W_2 = \frac{W_1 - F}{S} + 1" /></a>
    
    </li>
    <li>
    
    <a href="http://www.codecogs.com/eqnedit.php?latex=H_2&space;=&space;\frac{H_1&space;-&space;F}{S}&space;&plus;&space;1" target="_blank"><img src="http://latex.codecogs.com/gif.latex?H_2&space;=&space;\frac{H_1&space;-&space;F}{S}&space;&plus;&space;1" title="H_2 = \frac{H_1 - F}{S} + 1" /></a>
    
    </li>
    
The pooling resizes independently every channel of the input feature vector by applying a certain function on neighbourhoods of size

, with a stride

.
source
image source

Max pooling

Picks the maximal value from every neighbourhood.

Average pooling

Computes the average of every neighbourhood.

back