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

Update the Genetic Algorithm Example to Use a Function #2

Open
morganjwilliams opened this issue Mar 20, 2020 · 0 comments
Open

Update the Genetic Algorithm Example to Use a Function #2

morganjwilliams opened this issue Mar 20, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@morganjwilliams
Copy link
Contributor

The genetic algorithm examples (within the first two notebooks) are amenable to begin structured as a function (or two) which could be held in a separate .py file, which might simplify the workflow somewhat for these sections.

Many of the variables could be turned into function arguments, and the solution generalized such that no code changes are required when switching to two parent arrays under the 2D scenario. This would also allow some checks/try-repeat loops for the instances where np.nan pops up due to division-by-zero.

@morganjwilliams morganjwilliams added the enhancement New feature or request label Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant