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

Implement elitism #682

Closed
wants to merge 1 commit into from
Closed

Implement elitism #682

wants to merge 1 commit into from

Conversation

leocus
Copy link

@leocus leocus commented Jan 2, 2023

I implemented the possibility to add elitism in algorithms.eaSimple by using a new attribute of the toolbox ("replacement"), whose operators are defined in tools/replacement.py

@EyalWirsansky
Copy link

Any idea why this was not merged? was there any feedback?

@leocus
Copy link
Author

leocus commented Feb 27, 2023

Nope, no feedback at all

@EyalWirsansky
Copy link

Nope, no feedback at all
If you would like to further discuss this issue between us, please connect with me on LinkedIn (just search for my name).

@leocus
Copy link
Author

leocus commented Feb 28, 2023

Can't message you, I sent you a connection request!

@fmder
Copy link
Member

fmder commented Jul 21, 2023

I'm not in favour of modifying the base algorithms. The modo of DEAP is to force users to open the box and implement their own algorithms (which I'm very happy you did!).

Small comment, in the replacement function you are comparing fitnesses to individuals.

@fmder fmder closed this Jul 21, 2023
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

3 participants