Open thomashopkins32 opened 3 years ago
Picking this up as we now have some users that could benefit from this functionality.
In the use case, there is actually a hierarchical genome (lists of lists of lists). So I'm thinking we could offer a general "segmented crossover" operator that allows us to adjust the level of granularity that crossover occurs at. The highest (and default) level would be to swap top-level segments. The lower level would do sub-segments, etc.
Now that
ops.uniform_crossover
requires the use ofnp.array
for the genome (for efficiency purposes) I was thinking we could add a segmented crossover that acts as it used to forlist
based segmented genomes.