示例#1
0
 public override void Mutate(double probability, double standardDeviation)
 {
     if (Playfield.RNG.NextDouble() <= probability)
     {
         WeightsOutput = WeightsOutput.Add(RandomHelper.Gaussian(0, standardDeviation));
     }
     if (Playfield.RNG.NextDouble() <= probability)
     {
         Bias = Bias.Add(RandomHelper.Gaussian(0, standardDeviation));
     }
 }
示例#2
0
 public void TweakWeightsBy(Matrix <double> delta)
 {
     WeightsOutput = WeightsOutput.Add(delta);
 }
示例#3
0
 public override void Mutate(double probability, double standardDeviation)
 {
     WeightsOutput = WeightsOutput.Add(RandomHelper.Gaussian(0, standardDeviation));
     Bias          = Bias.Add(RandomHelper.Gaussian(0, standardDeviation));
 }