Skip to content

Conversation

miraaitsaada
Copy link

Correction of an issue that occurs when the fitness function is nondeterministic (shuffled cross-validation for example). In the _select_n method, the total fitness is computed according to the stored fitnesses, but the probs variable is computed according to recalculated fitness values.
This slight change makes the method use the stored fitnesses at each time, which solves the problem.
This also makes the method run much faster (especially when the fitness function has a high complexity) by removing unnecessary calls to _fitness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant