Skip to content

Fixed mate eval if maximize = False#57

Open
NicolasMahn wants to merge 1 commit intogkhayes:masterfrom
NicolasMahn:master
Open

Fixed mate eval if maximize = False#57
NicolasMahn wants to merge 1 commit intogkhayes:masterfrom
NicolasMahn:master

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