Ignore:
Timestamp:
04/11/21 03:21:14 (3 years ago)
Author:
Maciej Komosinski
Message:

Introduced the number of generations as a command-line parameter; refactored; fixed a typo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/evolalg/examples/invalid.py

    r1113 r1128  
    9494                   statistics_union]
    9595
    96     end_steps = [PopulationSave("halloffame.gen", provider=hall_of_fame.haloffame, fields={"genotype": "genotype",
     96    end_steps = [PopulationSave("halloffame.gen", provider=hall_of_fame.halloffame, fields={"genotype": "genotype",
    9797                                                                                           "fitness": "fitness",
    9898                                                                                           "custom": "recording"})]
     
    107107    experiment.init()
    108108    experiment.run(3)
    109     for ind in hall_of_fame.haloffame:
     109    for ind in hall_of_fame.halloffame:
    110110        print("%g\t%s" % (ind.fitness, ind.genotype))
    111111
Note: See TracChangeset for help on using the changeset viewer.