Add the new feature of customized initial population.#162
Add the new feature of customized initial population.#162peiyanpan wants to merge 7 commits intoEpistasisLab:mainfrom
Conversation
|
I do like the idea of being able to specify an initial population. Thanks for your interest and contribution to the project! Some notes:
This could be turned into a test potentially, I'm pretty sure that the order of the custom initial population will match the order in the pandas df. 3.
|
|
Is the code on the 9ca2116 branch working? |
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