8000 Replace callback_generation by on_generation · evdcush/GeneticAlgorithmPython@f74ab9e · GitHub
[go: up one dir, main page]

Skip to content

Commit f74ab9e

Browse files
authored
Replace callback_generation by on_generation
The parametetr on_generation is used instead of callback_generation.
1 parent 040b8e1 commit f74ab9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def callback_generation(ga_instance):
6363
crossover_type=crossover_type,
6464
mutation_type=mutation_type,
6565
mutation_percent_genes=mutation_percent_genes,
66-
callback_generation=callback_generation)
66+
on_generation=callback_generation)
6767

6868
# Running the GA to optimize the parameters of the function.
6969
ga_instance.run()

0 commit comments

Comments
 (0)
0