December 2019
Intermediate to advanced
368 pages
11h 10m
English
The genome's fitness evaluation is a significant part of any neuroevolution algorithm, including the HyperNEAT method. As you've seen, the main experiment loop invokes the eval_genomes function to evaluate the fitness of all genomes within a population for each generation. Here, we consider the implementation details of the fitness evaluation routines, which consists of two main functions:
def eval_genomes(genomes, substrate, vd_environment, generation): best_genome = None max_fitness = 0 distances = [] for genome in genomes: fitness, dist = eval_individual(genome, substrate, vd_environment) genome.SetFitness(fitness) distances.append(dist) if fitness ...
Read now
Unlock full access