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 d3b9ec0 commit 8a6970aCopy full SHA for 8a6970a
pygad/pygad.py
@@ -1648,7 +1648,6 @@ def cal_pop_fitness(self):
1648
# Make sure that both the solution and 'self.solutions' are of type 'list' not 'numpy.ndarray'.
1649
# if (self.save_solutions) and (len(self.solutions) > 0) and (numpy.any(numpy.all(self.solutions == numpy.array(sol), axis=1)))
1650
# if (self.save_solutions) and (len(self.solutions) > 0) and (numpy.any(numpy.all(numpy.equal(self.solutions, numpy.array(sol)), axis=1)))
1651
- # print("BBBBBB", len(self.best_solutions))
1652
if (self.save_solutions) and (len(self.solutions) > 0) and (list(sol) in self.solutions):
1653
solution_idx = self.solutions.index(list(sol))
1654
fitness = self.solutions_fitness[solution_idx]
0 commit comments