Esempio n. 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);
        }
Esempio n. 2
0
 public NeuralNet <T> crossOver(NeuralNet <T> otherParent, CrossOverInfo info)
 {
     return(new NeuralNet <T>(topology.crossOver(otherParent.topology, info)));
 }
Esempio n. 3
0
 public Individual(NeuralNet <T> neuralNet)
 {
     this.neuralNet = neuralNet;
 }
Esempio n. 4
0
        public Individual <T> crossOver(Individual <T> otherParent, CrossOverInfo info)
        {
            NeuralNet <T> childNet = neuralNet.crossOver(otherParent.neuralNet, info);

            return(new Individual <T>(childNet));
        }
Esempio n. 5
0
 public Individual()
 {
     neuralNet = new NeuralNet <T>();
 }