-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor API: ComposerRequirements and ComposerBuilder (#852)
* minor refactorings 1 * Simplify handling of ``init_cache`` in ApiComposer * Better logging string for best models in archive (add metric names) * Reorganize parameters: n_jobs, start_depth, show_progress: PipelineComposerRequirements -> ComposerRequirements duplicated max_pipeline_fit_time: drop from pipeline_composer_requirements.py * Reorganize parameters between ComposerRequirements & GraphOptimizerParams Move most of GraphOptimizerParams into ComposerRequirements. Make the former a dataclass * Rename with_auto_depth_configuration -> adaptive_depth * Renames: with_auto_depth_configuration -> adaptive_depth depth_increase_step -> adaptive_depth_max_stagnation * Renames: stopping_after_n_generation -> early_stopping_generations * Move graph depth/arity fields to pipeline_composer_requirements.py * Add general non-negative check for pipeline values * Minor fixes renames import * Drop dupl field in requirements * Fix postinit of default selection operator in GraphOptimizerParameters * Move infrastructure-related options from pipeline req-s to composer_requirements.py * Do not overwrite optimizer_params.multi_objective * WIP * Remove unused init in OptNodeFactory. Add signatures. * WIP move adaptive depth to ComposerRequirements * WIP move offspring_rate to basic requirements * Revert multi_objective fix in composer_builder.py * Separate infrastructural & algorithm options * WIP: remove is_multi_objective from GraphOptimizerParameters. Determine is automatically based on the number of metrics in ComposerBuilder. Or, in the case of manual setup, in Objective class. * Simplify usages of ComposerBuilder given changes in interface Drop meaningless tests for ComposerBuilder * Setup seed() data fixture in compoesr tests * Fix boosting mutation fix after rebase * fixup rebase * fix pep8 issues * fix review comments (renames, docstrings) * pep8 fixes * minor comment changes * fix docstrings & move primary/secondary * WIP move optimizer-related params to GrpahOptimizerParameters * WIP * Make hyperparameters static dict * Fix update of requirements & gp parameters in evo operators * fix n_jobs in obj eval * Move self.log to Operator base * Move geneti parameters to GPGraphOptimizerParameters * Minor rearranges * Fix tests & examples due to parameter rearrangement * Remove build of GraphOptimizerParameters from composer_builder.py * Fix incorrectly passed optimizer params in parameter_change_mutation * Rebase fixes * pep8 import fixes * pep8 import fixes * fix GraphOptimizerParameters import * Fix elisitm operator with incorrent sorting direction * Revert elitism fix * Set `with_history` in ComposerBuilder by default * Move additional params from mutation operator to GraphOptParams
- Loading branch information
Showing
49 changed files
with
871 additions
and
950 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.