Changeset 1140
- Timestamp:
- 05/08/21 20:10:15 (4 years ago)
- Location:
- framspy/evolalg/examples
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/evolalg/examples/niching_novelty.py
r1139 r1140 77 77 parser.add_argument('-max_numconnections', type=int, default=None, help="Maximum number of Neural connections. Default: no limit") 78 78 79 parser.add_argument('-hof_size', type=int, default=10, help="Number of genotypes in Hall of Fame. Default: 10.") 79 80 parser.add_argument('-hof_evaluations', type=int, default=20, help="Number of final evaluations of each genotype in Hall of Fame to obtain reliable (averaged) fitness. Default: 20.") 80 81 parser.add_argument('-checkpoint_path', required=False, default=None, help="Path to the checkpoint file") … … 243 244 # ------------------------------------------------- 244 245 # Statistics 245 hall_of_fame = HallOfFameStatistics( 100, "fitness_raw") # Wrapper for halloffamae246 hall_of_fame = HallOfFameStatistics(parsed_args.hof_size, "fitness_raw") # Wrapper for halloffamae 246 247 replace_with_hof = ReplaceWithHallOfFame(hall_of_fame) 247 248 statistics_deap = StatisticsDeap([ -
framspy/evolalg/examples/standard.py
r1133 r1140 7 7 # TODO extend both standard.py and steadystate.py to support >1 criteria (using DEAP's selNSGA2() and selSPEA2()) 8 8 # TODO add comments to all examples in this directory 9 # TODO add to standard.py and steadystate.py evaluating each genotype in HOF N (configurable, default 10) times when the evolution ends instead of evaluating the last population as it is nowin niching_novelty.py10 # TODO " debug" mode, displaying Step-based class names andtheir arguments so it is easy to see what happens during evolution9 # TODO add to standard.py and steadystate.py evaluating each genotype in HOF N (configurable, default 20) times when the evolution ends, as it is in niching_novelty.py 10 # TODO "--debug" mode, indent nested steps (pre++, post-- of a static counter?) and print their arguments so it is easy to see what happens during evolution 11 11 12 12 … … 43 43 help='optimization criteria : vertpos, velocity, distance, vertvel, lifespan, numjoints, numparts, numneurons, numconnections (or other as long as it is provided by the .sim file and its .expdef). Single or multiple criteria.') 44 44 parser.add_argument('-lib', required=False, help="Filename of .so or .dll with the Framsticks library") 45 45 46 parser.add_argument('-genformat', required=False, default="1", 46 47 help='Genetic format for the demo run, for example 4, 9, or B. If not given, f1 is assumed.') … … 49 50 parser.add_argument('-generations', type=int, default=5, help="Number of generations, default 5.") 50 51 parser.add_argument('-tournament', type=int, default=5, help="Tournament size, default 5.") 52 53 parser.add_argument('-hof_size', type=int, default=10, help="Number of genotypes in Hall of Fame. Default: 10.") 51 54 return parser.parse_args() 52 55 … … 65 68 frams_lib = FramsticksLib(parsed_args.path, parsed_args.lib, parsed_args.sim) 66 69 67 hall_of_fame = HallOfFameStatistics( 100, "fitness")70 hall_of_fame = HallOfFameStatistics(parsed_args.hof_size, "fitness") 68 71 statistics_union = UnionStep([ 69 72 hall_of_fame,
Note: See TracChangeset
for help on using the changeset viewer.