Skip to content

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
main
Dec 6, 2025
Merged

Update 59 feature branch with changes from main#62
gnypit merged 32 commits into59-keep-managers-but-do-not-register-chromosome-based-classes-with-itfrom
main

Conversation

@gnypit
Copy link
Copy Markdown
Owner

@gnypit gnypit commented Dec 6, 2025

No description provided.

gnypit added 30 commits October 13, 2025 19:34
…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
@gnypit gnypit self-assigned this Dec 6, 2025
@gnypit gnypit merged commit 1c6c30e into 59-keep-managers-but-do-not-register-chromosome-based-classes-with-it Dec 6, 2025
2 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.

1 participant