Skip to content

Commit bd052e2

Browse files
fix issues
1 parent 22ba1c8 commit bd052e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

genetic_algorithm/knapsack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def selection(
157157
>>> random.seed(1)
158158
>>> pop = [[0,0,0], [1,0,0], [1,1,0], [1,1,1]]
159159
>>> fits = [0, 5, 9, 7]
160-
>>> parent = selection(pop, fits, k=2)
160+
>>> parent = selection(pop, fits, tournament_k=2)
161161
>>> parent in pop
162162
True
163163
"""

0 commit comments

Comments
 (0)