Ignore:
Timestamp:
07/05/24 02:08:57 (2 weeks ago)
Author:
Maciej Komosinski
Message:

Cosmetic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/FramsticksEvolution.py

    r1311 r1312  
    7777def select_feasible(individuals):
    7878        """
    79         Filters out only feasible individuals (i.e., with fitness different from FITNESS_OF_INFEASIBLE_SOLUTION)
     79        Filters out only feasible individuals (i.e., with fitness different from FITNESS_VALUE_INFEASIBLE_SOLUTION)
    8080        """
    8181        # for ind in individuals:
     
    182182        hof = tools.HallOfFame(parsed_args.hof_size)
    183183        stats = tools.Statistics(lambda ind: ind.fitness.values)
    184         # calculate statistics excluding infeasible solutions (by filtering out their fitness=FITNESS_OF_INFEASIBLE_SOLUTION)
     184        # calculate statistics excluding infeasible solutions (by filtering out these with fitness containing FITNESS_VALUE_INFEASIBLE_SOLUTION)
    185185        filter_feasible_for_function = lambda function, fitness_criteria: function(list(filter(is_feasible_fitness_criteria, fitness_criteria)))
    186186        stats.register("avg", lambda fitness_criteria: filter_feasible_for_function(np.mean, fitness_criteria))
Note: See TracChangeset for help on using the changeset viewer.