Class ConvolutionalLayer

All Implemented Interfaces:
Backward, Forward, Layer<TensorBase>, Serializable

public final class ConvolutionalLayer extends AbstractLayer<TensorBase, TensorBase, Tensor4D>
Convolutional layer performs image convolution operation on outputs of a previous layer using filters. This filtering operation is similar like applying image filters in photoshop, but this filters can also be trained to learn image features of interest. Layer include parameters: filter's width, heigh Number of filters / depth Step when applying filters : stride Padding, which is an image border to keep the size of image and avoid information loss padding Stride defaults to 1
See Also:
  • Constructor Details

    • ConvolutionalLayer

      public ConvolutionalLayer(int channels, int filterWidth, int filterHeight)
      Create a new instance of convolutional layer with specified number of channels filter size, default padding (filter-1)/2, and default stride stride value 1, and specified number of channels. Uses Linear activation function by default.
      Parameters:
      channels - number of channels which corresponds to the number of image pixel feature that you want to learn and detect
      filterWidth -
      filterHeight -
    • ConvolutionalLayer

      public ConvolutionalLayer(int channels, Filter filter)
    • ConvolutionalLayer

      public ConvolutionalLayer(int channels, Filter filter, ActivationType activationType)
    • ConvolutionalLayer

      public ConvolutionalLayer(int channels, int filterWidth, int filterHeight, int stride, ActivationType activationType)
  • Method Details