예제 #1
0
 private static void MutateNeuronBiasDecreaseRandom(Ann ann)
 {
     ann.GetAllNeurons()[Util.rand.Next(ann.GetAllNeurons().Count)].Bias -= Util.rand.NextDouble() * 100;
 }
예제 #2
0
 private static void MutateNeuronBiasRandomize(Ann ann)
 {
     ann.GetAllNeurons()[Util.rand.Next(ann.GetAllNeurons().Count)].Bias = Util.rand.NextDouble();
 }