We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9679401 + 03bde3d commit be218d5Copy full SHA for be218d5
pygad.py
@@ -2115,7 +2115,7 @@ def adaptive_mutation_population_fitness(self, offspring):
2115
fitness[:self.last_generation_parents.shape[0]] = self.last_generation_fitness[self.last_generation_parents_indices]
2116
2117
for idx in range(len(parents_to_keep), fitness.shape[0]):
2118
- fitness[idx] = self.fitness_func(temp_population[idx], None, None)
+ fitness[idx] = self.fitness_func(temp_population[idx], self.extra_data, None)
2119
average_fitness = numpy.mean(fitness)
2120
2121
return average_fitness, fitness[len(parents_to_keep):]
0 commit comments