seallard / walker

NEAT
MIT License
0 stars 0 forks source link

Division by zero in Species #55

Closed seallard closed 4 years ago

seallard commented 4 years ago
    def get_average_fitness(self):
        total_fitness = self.get_total_fitness()
        return total_fitness/len(self.genomes)
seallard commented 4 years ago

This is due to no genome being assigned to the species. The species leader is a separate attribute and is not necessarily represented in the species list of genomes.