Open
Conversation
- added conversion methods from and to speciated populations - fixed the incoungrences in the speciated and non speciated snapshots
this experiments tests how much we can use the species division as early exploration than later exploited by a traditional evolutionary algorithm - moved morphology_compatibility into the main code, as it can be shared by multiple experiments
DaanZ
reviewed
May 16, 2020
DaanZ
left a comment
There was a problem hiding this comment.
I would use more clear names for the new functions, but the rest seems fine to merge now.
| next_species_id: int = 1): | ||
| # TODO analyzer | ||
| super().__init__(config, simulator_queue, analyzer_queue, next_robot_id) | ||
| self.config: PopulationSpeciatedConfig = self.config # this is only for correct type hinting |
|
|
||
| return new_population | ||
|
|
||
| def into_population(self) -> Population: |
There was a problem hiding this comment.
Into population is a weird name to me for a function.
|
|
||
| return new_population | ||
|
|
||
| def into_speciated_population(self, |
| generation_folder = self.config.experiment_management.generation_folder(gen_num) | ||
| for _, _, files in os.walk(generation_folder): | ||
| for file in files: | ||
| test = extract_id.search(file) |
and renamed unintuitive (unused) speciated_population_management function
…o species_exploration
and added a bit more documentation
DaanZ
approved these changes
May 19, 2020
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.
I added a new experiment
and made some fixes in the incongruences of the snapshot creation
In this experiment I want to use speciation only for the first
ngenerations and then transition to a more traditional evolutionary algorithm with no species.