コード例 #1
0
 public ConvolutionalLayerProps(ConvolutionalNeuralNetworkProps networkProps)
 {
     InputCols            = networkProps.InputCols; InputRows = networkProps.InputRows; NumberFeatures = networkProps.NumberFeatures;
     NeighborhoodCols     = networkProps.NeighborhoodCols; NeighborhoodRows = networkProps.NeighborhoodRows;
     PoolSamplingCols     = networkProps.PoolSamplingCols; PoolSamplingRows = networkProps.PoolSamplingRows;
     ConvolutionalOutputs = networkProps.ConvolutionalOutputs;
     FeatureCols          = networkProps.FeatureCols; FeatureRows = networkProps.FeatureRows;
     PoolCols             = networkProps.PoolCols; PoolRows = networkProps.PoolRows; PoolSize = networkProps.PoolSize;
 }
コード例 #2
0
 public ConvolutionalNeuralNetwork(ConvolutionalNeuralNetworkProps props, uint batches = 1)
     : base() //base(numInputs, numHiddenNodes, numOutputs, batches)
 {
     Props = props;
     Initialize((uint)props.ConvolutionalOutputs, (uint)props.NumberHiddenNodes, (uint)props.NumberOutputs, batches);
     NumInputs  = (uint)Props.InputSize;
     InputLayer = Layers[0] = new ConvolutionalLayer(new ConvolutionalLayerProps(props), m_ActivationFunction, batches, false);
     Reset();
     m_ActivationFunction.ChangeFunction(ActivationFunctions.FunctionTypes.Sigmoid);
     m_ActivationFunction.FunctionLearningRate = 0.075f;
 }