예제 #1
0
        public BackpropagationLayer(Backpropagation parent, FeedforwardLayer layer)
        {
            this.parent = parent;
            this.layer = layer;

            error = new double[layer.NeuronCount];
            errorDelta = new double[layer.NeuronCount];

            if (layer.Next != null)
            {
                accumulatedMatrixDelta = new Matrix(layer.NeuronCount + 1, layer.Next.NeuronCount);
                previousMatrixDelta = new Matrix(layer.NeuronCount + 1, layer.Next.NeuronCount);
                biasRow = layer.NeuronCount;
            }
        }
예제 #2
0
        public BackpropagationLayer(Backpropagation parent, FeedforwardLayer layer)
        {
            _parent = parent;
            _layer  = layer;

            _error      = new double[layer.NeuronCount];
            _errorDelta = new double[layer.NeuronCount];

            if (layer.Next != null)
            {
                _accumulatedMatrixDelta = new Matrix(layer.NeuronCount + 1, layer.Next.NeuronCount);
                _previousMatrixDelta    = new Matrix(layer.NeuronCount + 1, layer.Next.NeuronCount);
                _biasRow = layer.NeuronCount;
            }
        }