Skip to content

Commit

Permalink
Fix error in example code.
Browse files Browse the repository at this point in the history
  • Loading branch information
PytLab committed Feb 12, 2018
1 parent 7f70a0e commit fe046fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ or if you want to minimize it, you can add a minimization decorator on it
class ConsoleOutput(OnTheFlyAnalysis):
master_only = True
interval = 1
def register_step(self, ng, population, engine):
def register_step(self, g, population, engine):
best_indv = population.best_indv(engine.fitness)
msg = 'Generation: {}, best fitness: {:.3f}'.format(ng, engine.fmax)
msg = 'Generation: {}, best fitness: {:.3f}'.format(g, engine.fmax)
engine.logger.info(msg)
7. Run
Expand Down

0 comments on commit fe046fa

Please sign in to comment.