Documentation of 'org.neuroph.nnet.comp.layer.ConvolutionalLayer' Java class
ConvolutionalLayer
org.neuroph.nnet.comp.layer

Class ConvolutionalLayer

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<Neuron>


    public class ConvolutionalLayer
    extends FeatureMapsLayer
    Convolutional layer is a special type of layer, used in convolutional neural networks. It contains a collection of feature maps, default neuron settings for convolutional layers, and method for creating connections to feature maps. The role of the convolutional layer is extaction of high level features.
    See Also:
    FeatureMapsLayer, Serialized Form
    • Field Detail

      • DEFAULT_NEURON_PROP

        public static final NeuronProperties DEFAULT_NEURON_PROP
        Default neuron properties for convolutional layer
    • Constructor Detail

      • ConvolutionalLayer

        public ConvolutionalLayer(FeatureMapsLayer fromLayer,
                                  Dimension2D kernelDimension,
                                  int numberOfMaps)
        Creates convolutional layer with specified kernel, appropriate map dimensions in regard to previous layer (fromLayer param) and specified number of feature maps with default neuron settings for convolutional layer.
        Parameters:
        fromLayer - previous layer, which will be connected to this layer
        kernel - kernel for all feature maps
        numberOfMaps - number of feature maps to create in this layer
      • ConvolutionalLayer

        public ConvolutionalLayer(FeatureMapsLayer fromLayer,
                                  Dimension2D kernelDimension,
                                  int numberOfMaps,
                                  java.lang.Class<? extends TransferFunction> transferFunction)
        Creates convolutional layer with specified kernel, appropriate map dimensions in regard to previous layer (fromLayer param) and specified number of feature maps with default neuron settings for convolutional layer.
        Parameters:
        fromLayer - previous layer, which will be connected to this layer
        kernel - kernel for all feature maps
        numberOfMaps - number of feature maps to create in this layer
        transferFunction - neuron's transfer function to use
      • ConvolutionalLayer

        public ConvolutionalLayer(FeatureMapsLayer fromLayer,
                                  Dimension2D kernelDimension,
                                  int numberOfMaps,
                                  NeuronProperties neuronProp)
        Creates convolutional layer with specified kernel, appropriate map dimensions in regard to previous layer (fromLayer param) and specified number of feature maps with given neuron properties.
        Parameters:
        fromLayer - previous layer, which will be connected to this layer
        kernel - kernel for all feature maps
        numberOfMaps - number of feature maps to create in this layer
        neuronProp - settings for neurons in feature maps
    • Method Detail

      • connectMaps

        public void connectMaps(FeatureMapLayer fromMap,
                                FeatureMapLayer toMap)
        Creates connections with shared weights between two feature maps Assumes that toMap is from Convolutional layer.

        Kernel is used as a sliding window, and kernel positions overlap. Kernel is shifting right by one position at a time. Neurons at the same kernel position share the same weights

        Specified by:
        connectMaps in class FeatureMapsLayer
        Parameters:
        fromMap - source feature map
        toMap - destination feature map

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.