Add the new feature of customized initial population. #162
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.
What does this PR do?
Add the new feature of allowing users to specify customized initial pipeline population for TPOT2.
Where should the reviewer start?
Contains the SequentialPipeline initialization method, which consists of scalers, selectors, transformers_layer, inner_estimators_layer, estimators and a sample of initializing this TPOTClassifier in a customized_initial_population parameter.
A new set_node() function has been added, containing mainly operations for adding new nodes in pipeline.
Add some judgments about the number of initialized populations and the number of populations that need to be generated by crushed gold.
Add passing of customized_initial_population parameter
How should this PR be tested?
The test code is at tpot2/tests/test_customized_iniPop.py:
pytest test_customized_iniPop.py
Any background context you want to provide?
In this version, users can specify a well-defined initial pipeline population, currently limited to the SequentialPipeline type. This update has the potential to improve algorithm performance and reduce evolutionary time.
Several Tips:
Referencing the examples in customized_initial_population.py and modifying them according to TPOT2's config_dict.
What are the relevant issues?
issue-61
Main Contributors
@peiyanpan @t-harden