Exemple #1
0
        protected internal override void InitializeNewRun(AlgoInitializationMode mode)
        {
            base.InitializeNewRun(mode);

            if (mode == AlgoInitializationMode.Startup)
            {
                count = LearningConnections.ItemArray.Length;
                p = new double[count];
                r = new double[count];
                gradients = new double[2, count];
                lastWeights = new double[count];
                wError = stepError = 1.0;
                decay = ((SCGRule)LearningConnections.ItemArray[0].Rule).WeightDecay;
            }

            // SCG Step 1:

            nextStep = null;
        }
 public QuickpropRule()
 {
     Mu = 1.75;
     WeightDecay = new WeightDecay { IsEnabled = true };
 }