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

Fix for cxOnePointLeafBiased and python 3.11 #733

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

harwoodr
Copy link

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

fix for cxOnePointLeafBiased and python 3.11
Fix for cxOnePointLeafBiased and python 3.11
@stonebig
Copy link

stonebig commented Jan 6, 2024

it would be nice to have deap for Python-3.11 and Python-3.12

Copy link

@EvolSched EvolSched left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, why not change "random.sample(common_types, 1)[0]" directly to "random.choice(list(common_types))", just like in the cxOnePoint() function? This is more efficient.

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.

3 participants