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)); } }
public void TweakWeightsBy(Matrix <double> delta) { WeightsOutput = WeightsOutput.Add(delta); }
public override void Mutate(double probability, double standardDeviation) { WeightsOutput = WeightsOutput.Add(RandomHelper.Gaussian(0, standardDeviation)); Bias = Bias.Add(RandomHelper.Gaussian(0, standardDeviation)); }