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
Copy file name to clipboardExpand all lines: pygad.py
+28-1Lines changed: 28 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
importpickle
5
5
importtime
6
6
importwarnings
7
+
frommultiprocessingimportProcess, Queue
8
+
7
9
8
10
classGA:
9
11
@@ -648,7 +650,7 @@ def __init__(self,
648
650
try:
649
651
ifdesired_output.size>0andfunction_inputs.size>0:
650
652
self.fitness_function_extra_data_set=1
651
-
ifauxiliary_data:
653
+
ifnotself.test_numpy_array_empty(auxiliary_data):
652
654
self.fitness_function_extra_data_set=2
653
655
self.desired_output=desired_output
654
656
self.function_inputs=function_inputs
@@ -938,6 +940,31 @@ def __init__(self,
938
940
self.last_generation_offspring_mutation=None# A list holding the offspring after applying mutation in the last generation.
939
941
self.previous_generation_fitness=None# Holds the fitness values of one generation before the fitness values saved in the last_generation_fitness attribute. Added in PyGAD 2.26.2
0 commit comments