Skip to content

Commit 8f4c28e

Browse files
fix issues
1 parent 3d17060 commit 8f4c28e

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
@@ -257,7 +257,7 @@ def run_ga(
257257
... p_crossover=0.9, p_mutation=0.05,
258258
... tournament_k=2, elitism=1
259259
... )
260-
>>> len(out['best_history']) == 5 and len(out['avg_history']) == 5
260+
>>> len(out['best_fitness_history']) == 5 and len(out['avg_fitness_history']) == 5
261261
True
262262
>>> isinstance(out['best_genome'], list) and isinstance(out['best_value'], int)
263263
True

0 commit comments

Comments
 (0)