Skip to content

Changes in python's random module require a minor change for cxOnePointLeafBiased.#762

Merged
fmder merged 1 commit intoDEAP:masterfrom
Ashrockzzz2003:master
Jan 3, 2025
Merged

Changes in python's random module require a minor change for cxOnePointLeafBiased.#762
fmder merged 1 commit intoDEAP:masterfrom
Ashrockzzz2003:master

Conversation

@Ashrockzzz2003
Copy link
Contributor

@Ashrockzzz2003 Ashrockzzz2003 commented Jan 3, 2025

#733 already exists which is a fix for #732 but the PR is stale as code review changes were not addressed for 6+ months. This is an attempt to fix that. We were experimenting with deap to understand gp which is when we discovered this bug and saw it was already an issue. However before the fix, issue was closed.

This PR fixes #732

Please review @cyrilpic @professor @bollwyvl @jmmcd @keszybz @fmder
I didn't know exactly who to tag. That's y I tagged everyone.

@fmder
Copy link
Member

fmder commented Jan 3, 2025

Seeded choice does reproduce sample(x, 1)[0]. All good. Thanks

@fmder fmder merged commit 493ec0b into DEAP:master Jan 3, 2025
4 checks passed
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.

TypeError: Population must be a sequence. For dicts or sets, use sorted(d)

2 participants