Exemple #1
0
 protected virtual void OnEndEpochEvent(EndEpochEventArgs e)
 {
     if (EndEpochEvent != null)
     {
         EndEpochEvent(this, e);
     }
 }
Exemple #2
0
        private void StartEpoch(List <double> pattern)
        {
            Neuron Winner = this.FindWinner(pattern);

            currentEpsilon = 0;
            for (int i = 0; i < outputLayerDimension; i++)
            {
                for (int j = 0; j < outputLayerDimension; j++)
                {
                    currentEpsilon += outputLayer[i, j].ModifyWights(pattern, Winner.Coordinate, currentIteration, function);
                }
            }
            currentIteration++;
            currentEpsilon = Math.Abs(currentEpsilon / (outputLayerDimension * outputLayerDimension));
            EndEpochEventArgs e = new EndEpochEventArgs();

            OnEndEpochEvent(e);
        }