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/pygad.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -781,7 +781,7 @@ def __init__(self,
781
781
self.valid_parameters=False
782
782
raiseValueError(f"When mutation_type='adaptive', then the 'mutation_percent_genes' parameter must have only 2 elements but ({len(mutation_percent_genes)}) element(s) found.")
783
783
else:
784
-
ifself.mutation_percent_genesisNone:
784
+
ifself.mutation_probabilityisNone:
785
785
self.valid_parameters=False
786
786
raiseTypeError(f"Unexpected type of the 'mutation_percent_genes' parameter. When mutation_type='adaptive', then the 'mutation_percent_genes' parameter should exist and assigned a list/tuple/numpy.ndarray with 2 values but ({mutation_percent_genes}) found.")
787
787
# The mutation_num_genes parameter exists. Checking whether adaptive mutation is used.
0 commit comments