Exemple #1
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are not allowed in .NET:
//ORIGINAL LINE: public Builder withConvolutionLayer(final org.neuroph.nnet.comp.Dimension2D kernelDimension, int numberOfMaps, Class transferFunction)
            public virtual Builder withConvolutionLayer(comp.Dimension2D kernelDimension, int numberOfMaps, Type transferFunction)
            {
                FeatureMapsLayer   prevLayer        = LastFeatureMapLayer;
                ConvolutionalLayer convolutionLayer = new ConvolutionalLayer(prevLayer, kernelDimension, numberOfMaps, transferFunction);

                network.addLayer(convolutionLayer);
                ConvolutionalUtils.fullConnectMapLayers(prevLayer, convolutionLayer);

                return(this);
            }
Exemple #2
0
 /// <summary>
 /// Creates new kernel with specified width and height
 /// </summary>
 /// <param name="width"> kernel width </param>
 /// <param name="height"> kernel height </param>
 public Kernel(Dimension2D dimension)
 {
     this.width  = dimension.Width;
     this.height = dimension.Height;
 }