Closed nosb9124 closed 4 years ago
Programs that did not make it through selection to contribute to the next generation are removed from the old generations due to the high memory use it causes, you can find the logic here: https://github.com/trevorstephens/gplearn/blob/master/gplearn/genetic.py#L502-L514
Thanks!
You're welcome :-)
Hello,
I am working through the example notebook https://github.com/trevorstephens/gplearn/blob/master/doc/gp_examples.ipynb and am able to reproduce the same results.
When I inspect the initial population
est_gp._programs[0]
only 139 candidates are a gplearn program and the remainder areNone
. I get similar results of a high proportion of the initial population being set toNone
when applying to my own regression problem. Why is this the case?Line 222 of https://github.com/trevorstephens/gplearn/blob/master/gplearn/_program.py (I think this is the right place to look) implies this should never happen.
Thank you!