Changeset 1296
- Timestamp:
- 02/23/24 04:48:57 (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/evolalg/tests/test_diferent_settings.py
r1292 r1296 9 9 from ..numerical_example.numerical_example import ExperimentNumerical 10 10 from ..numerical_example.numerical_islands_example import ExperimentNumericalIslands 11 from ..structures.individual import Individual 11 12 12 13 from ..utils import ensureDir … … 119 120 "max_numgenochars": params['max_numgenochars'], 120 121 } 122 123 old_fitness_set_negative_to_zero = Individual.fitness_set_negative_to_zero # save a copy of the current value to restore later 124 Individual.fitness_set_negative_to_zero = True # niching must have it set to True, see "-fitness_set_negative_to_zero" argument in experiment_abc.py 121 125 122 126 experiment = ExperimentFramsNiching(frams_lib=framsLib, … … 140 144 pxov=params['pxov'], 141 145 tournament_size=params['tournament']) 146 147 Individual.fitness_set_negative_to_zero = old_fitness_set_negative_to_zero # restore original value 142 148 143 149 def test_run_experiment_frams_island(params):
Note: See TracChangeset
for help on using the changeset viewer.