Skip to content

Commit

Permalink
Change parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedfgad committed Feb 19, 2024
1 parent 990f1a1 commit 51c1bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/example_multi_objective.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def on_generation(ga_instance):
# Running the GA to optimize the parameters of the function.
ga_instance.run()

ga_instance.plot_fitness(labels=['Obj 1', 'Obj 2'])
ga_instance.plot_fitness(label=['Obj 1', 'Obj 2'])

# Returning the details of the best solution.
solution, solution_fitness, solution_idx = ga_instance.best_solution(ga_instance.last_generation_fitness)
Expand Down

0 comments on commit 51c1bca

Please sign in to comment.