Encog.Neural.Networks.Training.Competitive.CompetitiveTraining.SetAutoDecay C# (CSharp) Method

SetAutoDecay() public method

Setup autodecay. This will decrease the radius and learning rate from the start values to the end values.
public SetAutoDecay ( int plannedIterations, double startRate, double endRate, double startRadius, double endRadius ) : void
plannedIterations int The number of iterations that are planned. /// This allows the decay rate to be determined.
startRate double The starting learning rate.
endRate double The ending learning rate.
startRadius double The starting radius.
endRadius double The ending radius.
return void
        public void SetAutoDecay(int plannedIterations,
                 double startRate, double endRate,
                 double startRadius, double endRadius)
        {
            this.startRate = startRate;
            this.endRate = endRate;
            this.startRadius = startRadius;
            this.endRadius = endRadius;
            this.autoDecayRadius = (endRadius - startRadius) / plannedIterations;
            this.autoDecayRate = (endRate - startRate) / plannedIterations;
            SetParams(this.startRate, this.startRadius);
        }