Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correction of EA and GA for nondeterministic fitness functions #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant