예제 #1
0
        // Apply any deltas that were calculated during back-propogation.
        // The input signals and the bias are all checked for deltas to be applied
        public void ApplyLearning()
        {
            foreach (KeyValuePair <NeuronSignal, NeuralFactor> m in InputSignals)
            {
                m.Value.ApplyWeightChange();
            }

            Bias.ApplyWeightChange();
        }
예제 #2
0
        public void ApplyLearning(ref double learningRate)
        {
            foreach (var m in Input)
            {
                m.Value.ApplyWeightChange(ref learningRate);
            }

            Bias.ApplyWeightChange(ref learningRate);
        }
예제 #3
0
        /// <summary>
        /// Apply delta that is calculated in back prop
        /// </summary>
        public void ApplyLearning()
        {
            foreach (var m in InputSignals)//Apply weight change
            {
                m.Value.ApplyWeightChange();
            }

            // Bias for shifting activation function val
            Bias.ApplyWeightChange();
        }