We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c895e99 commit 647c700Copy full SHA for 647c700
1 file changed
Example_GeneticAlgorithm.py
@@ -13,7 +13,7 @@
13
equation_inputs = [4,-2,3.5,5,-11,-4.7]
14
15
# Number of the weights we are looking to optimize.
16
-num_weights = 6
+num_weights = len(equation_inputs)
17
18
"""
19
Genetic algorithm parameters:
0 commit comments