コード例 #1
0
            /******TODO
             *
             * public Layer GetHLayer(int LayerIndex) => h_layers[LayerIndex];
             * public void SetHLayer(int LayerIndex, Layer set) => h_layers[LayerIndex] = set;
             *
             * public void MutateAllLayer(float mutationProb)
             * {
             *      for (int i = 0; i < h_layers.Length; i++)
             *      {
             *              h_layers[i].MutateAllNeurons(mutationProb);
             *      }
             * }
             *******/

            public void Mutate(float mutationRate)
            {
                for (int i = 0; i < h_layers.CountLayer(); i++)
                {
                    h_layers.Mutate(mutationRate);
                }
            }