Update 59 feature branch with changes from main#62
Merged
gnypit merged 32 commits into59-keep-managers-but-do-not-register-chromosome-based-classes-with-itfrom Dec 6, 2025
Merged
Conversation
This reverts commit b5093c9.
…eError: cannot pickle 'weakref.ReferenceType' object" This reverts commit 8ff1d13.
Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
…er usage, including type hint where possible. Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
…ating rival generations. Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
…ckling problems. I'm putting functions for creating rival generations and evaluating their members back as methods of the `GeneticAlgorithm` and I'll pass containers to them in the processes, from shared memory, to store results of the work executed in parallel. @gnypit don't forget this strategy Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
…e method for creating rival generations. I left only combination ID, over which I iterate my loop with processes, and the `GeneticAlgorithm` class attribute `rival_gen_pool` proxy from the shared memory, as a container. Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
…ocal variables now. Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
…Proxy` of members has to be passed to the constructor. Thus, to processes for creating rival generations, a container for members themselves has to be passed. Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
… only members for these. Also, I updated how this function is used by workers in the `run` method of the GA. Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
…nges to the `Generation` class constructor. Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
…heir pool (now container) by the parallel processes. Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
…s' method, added some TODOs and removed redundant logging. Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
…have to change it all again - not only `SyncManager` is not pickeable, but a self-reference to the `GeneticAlgorithm` class too, because some attributes in it are not pickleable Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
… want these functionalities to be in some functions outside the class, it'd be confusing. Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
…n parallel and is creating a Generation with Members with non-empty genomes. Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
…shared lists of members and `run` to reuse `rival_members_container` from creating members of rival Generations in their evaluation. Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
…nside the `Generation` class. I updated the method `_create_initial_generation` accordingly. Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
…he `Generation` class is now a regular list, thus still existing after (multiple) processes are executed. Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
…the previous changes in this branch. Signed-off-by: Jakub Tomasz Gnyp <gnyp.jakub@gmail.com>
…-argument-is-empty-in-_choose_best_rival_generation 58-resolve-valueerror-max-iterable-argument-is-empty-in-_choose_best_rival_generation
1c6c30e
into
59-keep-managers-but-do-not-register-chromosome-based-classes-with-it
2 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.