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

Fixed mate eval if maximize = False #57

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

Conversation

NicolasMahn
Copy link

I realised that if maximize is set to false meaning the fitness values are negative.
The lower fitness values (the fitness values with a higher number but lower value) would still be prefered in procreation as the eval would only consider the size of the number but not it's value. In essence it would ignore the negativity of the fitness values.
This branch proposes a fix.
find in code:
opt_probs.py line 102-116
find new test:
test_opt_probs.py line 151-168

(had to fix the six problem so I could run the tests)

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