Example #1
0
 /// <summary>
 /// Does a simple mutation of each weight by a small value
 /// </summary>
 public void SimpleMutate(int _percentage = 30)
 {
     for (int i = 0; i < weightMatrixes.Count; i++)
     {
         weightMatrixes[i] = MatrixF.Mutate(weightMatrixes[i], _percentage);
     }
     for (int i = 0; i < biasMatrixes.Count; i++)
     {
         biasMatrixes[i] = MatrixF.Mutate(biasMatrixes[i], _percentage);
     }
 }