Skip to content

Commit 59ac20f

Browse files
committed
Merge branch 'feat/evo-search-param' of https://github.com/AI-Enabled-Software-Testing/Hyperparameter-Tuning-Search-Project into feat/evo-search-param
2 parents be1dc39 + 1046f6d commit 59ac20f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

search/genetic_algorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def evaluate_population(evals_done, params, eval_cache):
204204
offspring.append(child)
205205
attempts += 1
206206
# A Brief Checking
207-
assert len(offspring) <= max_offspring, "Number of Offsprings should not exceed the allowed maximum"
207+
assert len(offspring) < max_offspring, "Number of Offsprings should not exceed the allowed maximum"
208208
assert len(offspring) <= len(all_params), f"Evolved {len(offspring)} Offsprings should not exceed the total population of {len(all_params)}"
209209

210210
# 3. Mutation

0 commit comments

Comments
 (0)