コード例 #1
0
 private void Evaluate(Chromosome child)
 {
     child.Penalty = this.network.CalculateError(this.dataset, child.Values);
 }
コード例 #2
0
 private void Mutate(Chromosome child)
 {
     Mutation.Mutate(child, this.random);
 }
コード例 #3
0
 private Tuple <Chromosome, Chromosome> Select(out Chromosome worst)
 {
     return(Selection.Select(this.population, this.random, out worst));
 }
コード例 #4
0
 private void Replace(Chromosome worst, Chromosome child)
 {
     this.population.Remove(worst);
     this.population.Add(child);
 }