Skip to content

Commit

Permalink
small backwards-compatible change on reporting to support NSGA2Fitness
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoaboud committed Dec 30, 2020
1 parent 2b1007a commit 9dbd77b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neat/reporting.py
Expand Up @@ -134,7 +134,7 @@ def post_evaluate(self, config, population, species, best_genome):
best_species_id = species.get_species_id(best_genome.key)
print('Population\'s average fitness: {0:3.5f} stdev: {1:3.5f}'.format(fit_mean, fit_std))
print(
'Best fitness: {0:3.5f} - size: {1!r} - species {2} - id {3}'.format(best_genome.fitness,
'Best fitness: {0:3.5f} - size: {1!r} - species {2} - id {3}'.format(float(best_genome.fitness),
best_genome.size(),
best_species_id,
best_genome.key))
Expand Down

0 comments on commit 9dbd77b

Please sign in to comment.