Closed arthurire closed 3 years ago
should be problems with np.array , closed.
Is this open or closed?
Is this open or closed?
Still opening.
Is this open or closed?
Sorry but now I think I could close my issue. There's something wrong with my own function. I thought it should pass a view()
of numpy.array
but it passed the array itself.
I re-opened this issue cuz I finally found what happened : the original pset was modified during the loop. Everything works fine if I re-generate the pset before updating fitness.
I hope to know if there's anywhere that could change the pset, especially when generating populations.
================================================ Formulas and Results doesn't match
i.e. formula shows add(a,b) and it turns out to be sub(a,b) when looking at the result of
toolbox.compile(ind)
Here are the returns:
0 10000 -0.745048 -10 1.72108 1 6036 -0.774616 -10 2.20018 2 5987 -0.760649 -10 1.86958 3 6021 -0.758109 -10 1.99002 4 5979 -0.74858 -10 1.99002
Here are the fitness.values in HOF
(-0.5168971247476096,) (-0.48964720411362084,) (-0.3588201328636351,) (1.6689032764601874,) (1.741588916931653,) (-0.6276309546449512,) (1.6911644461920026,) (1.5887612074710653,) (1.5507840221851648,) (1.4511766174393808,)