Ignore:
Timestamp:
05/08/21 20:10:15 (4 years ago)
Author:
Maciej Komosinski
Message:

Introduced a parameter for the size of the hall of fame

File:
1 edited

Legend:

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

    r1139 r1140  
    7777    parser.add_argument('-max_numconnections', type=int, default=None, help="Maximum number of Neural connections. Default: no limit")
    7878
     79    parser.add_argument('-hof_size', type=int, default=10, help="Number of genotypes in Hall of Fame. Default: 10.")
    7980    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.")
    8081    parser.add_argument('-checkpoint_path', required=False, default=None, help="Path to the checkpoint file")
     
    243244    # -------------------------------------------------
    244245    # Statistics
    245     hall_of_fame = HallOfFameStatistics(100, "fitness_raw")  # Wrapper for halloffamae
     246    hall_of_fame = HallOfFameStatistics(parsed_args.hof_size, "fitness_raw")  # Wrapper for halloffamae
    246247    replace_with_hof = ReplaceWithHallOfFame(hall_of_fame)
    247248    statistics_deap = StatisticsDeap([
Note: See TracChangeset for help on using the changeset viewer.