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