We should add a new function to the segmentor class that returns a population of offspring (maybe all it local_offspring that only modifies the parameters associated with the specific segmentor. We can then use this function at each iteration to make it more likely that the population will make variations on the current best individuals.
As it is written now the search is entirely random so we get the same basic solution over many generations (even when it is mutating).
We should add a new function to the segmentor class that returns a population of offspring (maybe all it
local_offspring
that only modifies the parameters associated with the specific segmentor. We can then use this function at each iteration to make it more likely that the population will make variations on the current best individuals.As it is written now the search is entirely random so we get the same basic solution over many generations (even when it is mutating).