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