public static Neuron MutateDelNode(Genome genome) { var hiddenNeurons = genome.HiddenNeurons; if (hiddenNeurons.Count() == 0) { return(null); } return(genome.RemoveNode(hiddenNeurons.ElementAt(Random.Range(0, hiddenNeurons.Count())))); }
public static Neuron MutateDelNode(Genome genome) { var hiddenNeurons = genome.HiddenNeurons; if (hiddenNeurons.Count() == 0) { return(null); } return(genome.RemoveNode(hiddenNeurons.ElementAt(Random.Range(0, hiddenNeurons.Count())))); }