Пример #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>();
 }