Commit 9e77160c authored by quickjkee's avatar quickjkee
Browse files

bug fix

No related merge requests found
Showing with 0 additions and 3 deletions
+0 -3
......@@ -11,9 +11,6 @@ class GA(BaseGA):
self.init_populations(population)
self.init_fitness(performance)
best = sorted(self._pop, key=lambda x: x.fitness)[0]
print(f'\n Best fitness is {best.fitness}')
selected = self.tournament_selection()
self._pop = sorted(selected, key=lambda x: x.fitness)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment