コード例 #1
0
        public object Clone()
        {
            var ret = new NeuralNet <T>(topology.Clone() as Topology);

            for (int i = 0; i < LayerCount; i++)
            {
                ret.neuralLayers[i] = neuralLayers[i].Clone() as NeuralLayer <T>;
            }
            return(ret);
        }
コード例 #2
0
 public NeuralNet <T> crossOver(NeuralNet <T> otherParent, CrossOverInfo info)
 {
     return(new NeuralNet <T>(topology.crossOver(otherParent.topology, info)));
 }
コード例 #3
0
 public Individual(NeuralNet <T> neuralNet)
 {
     this.neuralNet = neuralNet;
 }
コード例 #4
0
        public Individual <T> crossOver(Individual <T> otherParent, CrossOverInfo info)
        {
            NeuralNet <T> childNet = neuralNet.crossOver(otherParent.neuralNet, info);

            return(new Individual <T>(childNet));
        }
コード例 #5
0
 public Individual()
 {
     neuralNet = new NeuralNet <T>();
 }