public final class MaxPoolingLayer extends AbstractLayer
ConvolutionalNetwork
,
Serialized FormConstructor and Description |
---|
MaxPoolingLayer(Filter filter) |
MaxPoolingLayer(int filterWidth,
int filterHeight,
int stride)
Creates a new max pooling layer with specified filter dimensions and stride.
|
Modifier and Type | Method and Description |
---|---|
void |
applyWeightChanges()
Does nothing for pooling layer since it does not have weights
It just propagates deltas from next layer to previous through connections that had max activation in forward pass
|
void |
backward()
backward pass for a max(x, y) operation has a simple interpretation as
only routing the gradient to the input that had the highest value in the
forward pass.
|
void |
forward()
Max pooling forward pass outputs the max value for each filter position.
|
int |
getFilterHeight() |
int |
getFilterWidth() |
float |
getL1WeightSum() |
float |
getL2WeightSum() |
int |
getStride() |
void |
init()
This method should implement layer initialization in subclasses, when a layer is added to
the network (create weights, outputs, deltas, randomization etc.).
|
void |
initTransientFields() |
String |
toString() |
getActivation, getActivationType, getBatchSize, getBiases, getDeltaBiases, getDeltas, getDeltaWeights, getDepth, getGradients, getHeight, getL1Regularization, getL2Regularization, getLearningRate, getMomentum, getNextLayer, getOptimizer, getOptimizerType, getOutputs, getPrevDeltaBiases, getPrevDeltaWeights, getPrevlayer, getWeights, getWidth, isBatchMode, isTrainable, setBatchMode, setBatchSize, setBiases, setDeltas, setL1Regularization, setL2Regularization, setLearningRate, setMomentum, setNextlayer, setOptimizerType, setOutputs, setPrevDeltaWeights, setPrevLayer, setTrainable, setWeights, setWeights
public MaxPoolingLayer(int filterWidth, int filterHeight, int stride)
filterWidth
- width of the filter squarefilterHeight
- height of the filter squarestride
- filter steppublic MaxPoolingLayer(Filter filter)
public final void init()
AbstractLayer
init
in class AbstractLayer
public void initTransientFields()
initTransientFields
in class AbstractLayer
public void forward()
forward
in interface Layer
forward
in class AbstractLayer
public void backward()
backward
in interface Layer
backward
in class AbstractLayer
public void applyWeightChanges()
applyWeightChanges
in class AbstractLayer
public int getFilterWidth()
public int getFilterHeight()
public int getStride()
public float getL1WeightSum()
getL1WeightSum
in class AbstractLayer
public float getL2WeightSum()
getL2WeightSum
in class AbstractLayer
Copyright © 2022. All rights reserved.