You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warnings.warn("The 'delay_after_gen' parameter is deprecated starting from PyGAD 3.3.0. To delay or pause the evolution after each generation, assign a callback function/method to the 'on_generation' parameter to adds some time delay.")
1138
+
ifnotself.suppress_warnings:
1139
+
warnings.warn("The 'delay_after_gen' parameter is deprecated starting from PyGAD 3.3.0. To delay or pause the evolution after each generation, assign a callback function/method to the 'on_generation' parameter to adds some time delay.")
1141
1140
ifdelay_after_gen>=0.0:
1142
1141
self.delay_after_gen=delay_after_gen
1143
1142
else:
@@ -1914,6 +1913,16 @@ def run(self):
1914
1913
# Measuring the fitness of each chromosome in the population. Save the fitness in the last_generation_fitness attribute.
raiseTypeError(f"Incorrect parent selection type. The fitness function returned a single numeric fitness value which means the problem is single-objective. But the parent selection type {self.parent_selection_type} is used which only works for multi-objective optimization problems.")
1922
+
eliftype(self.last_generation_fitness[0]) in [list, tuple, numpy.ndarray]:
0 commit comments