Skip to content

Commit 9dbd77b

Browse files
committed
small backwards-compatible change on reporting to support NSGA2Fitness
1 parent 2b1007a commit 9dbd77b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neat/reporting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def post_evaluate(self, config, population, species, best_genome):
134134
best_species_id = species.get_species_id(best_genome.key)
135135
print('Population\'s average fitness: {0:3.5f} stdev: {1:3.5f}'.format(fit_mean, fit_std))
136136
print(
137-
'Best fitness: {0:3.5f} - size: {1!r} - species {2} - id {3}'.format(best_genome.fitness,
137+
'Best fitness: {0:3.5f} - size: {1!r} - species {2} - id {3}'.format(float(best_genome.fitness),
138138
best_genome.size(),
139139
best_species_id,
140140
best_genome.key))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy