We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6500af4 commit b21d768Copy full SHA for b21d768
example.py
@@ -30,9 +30,6 @@ def fitness_func(solution, solution_idx):
30
sol_per_pop = 20 # Number of solutions in the population.
31
num_genes = len(function_inputs)
32
33
-init_range_low = -2
34
-init_range_high = 5
35
-
36
parent_selection_type = "sss" # Type of parent selection.
37
keep_parents = -1 # Number of parents to keep in the next population. -1 means keep all parents and 0 means keep nothing.
38
@@ -56,8 +53,6 @@ def callback_generation(ga_instance):
56
53
fitness_func=fitness_function,
57
54
sol_per_pop=sol_per_pop,
58
55
num_genes=num_genes,
59
- init_range_low=init_range_low,
60
- init_range_high=init_range_high,
61
parent_selection_type=parent_selection_type,
62
keep_parents=keep_parents,
63
crossover_type=crossover_type,
0 commit comments