We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d17060 commit 8f4c28eCopy full SHA for 8f4c28e
genetic_algorithm/knapsack.py
@@ -257,7 +257,7 @@ def run_ga(
257
... p_crossover=0.9, p_mutation=0.05,
258
... tournament_k=2, elitism=1
259
... )
260
- >>> len(out['best_history']) == 5 and len(out['avg_history']) == 5
+ >>> len(out['best_fitness_history']) == 5 and len(out['avg_fitness_history']) == 5
261
True
262
>>> isinstance(out['best_genome'], list) and isinstance(out['best_value'], int)
263
0 commit comments