klyn.math.nn.layers.MaxPooling2D.MaxPooling2D
constructor
public MaxPooling2D(poolSize as Tuple, strides as Tuple = null, padding as String = "valid")
Description

Configures independent window reductions with no trainable parameters.

Parameters
ParameterDescription
poolSizePositive (height, width) window.
stridesPositive (vertical, horizontal) steps; null uses the window size.
paddingvalid or same; odd padding goes to bottom/right.
Throws
  • ValueException for invalid options.
Example

layer = MaxPooling2D<Float>((2, 3), strides=(1, 2))