Esempio n. 1
0
            private void CalculateSigma(int numberOfLayer, int numberOfThisNeuron)
            {
                double _partialSum = 0;

                for (int i = 0; i < Layers[numberOfLayer + 1].NeuronsList.Length; i++)
                {
                    _partialSum += Layers[numberOfLayer + 1].NeuronsList[i].Sigma * Layers[numberOfLayer + 1].NeuronsList[i].Inputs[numberOfThisNeuron].Weight;
                }
                Sigma = TransitFuncDerivativeOfNetwork.Invoke(SumInputs(this.Inputs), 1) * _partialSum;
                //MessageBox.Show(TransitFuncDerivativeOfNetwork.Invoke(Output, 1).ToString());
            }
Esempio n. 2
0
 private void CalculateSigma_LastLayerNeuron(double Y)
 {
     Sigma = (Y - Output) * TransitFuncDerivativeOfNetwork.Invoke(SumInputs(this.Inputs), 1);
 }