Hyperactive icon indicating copy to clipboard operation
Hyperactive copied to clipboard

[ENH] change optimization-strategy api for v5

Open SimonBlanke opened this issue 10 months ago • 4 comments

To separate the discussion about the optimization-strategy api for v5 started in https://github.com/SimonBlanke/Hyperactive/pull/101.

In the future it makes sense to rename this feature to something like "CompositeOptimizer" or "OptimizerPipeline".

In scikit-learn the estimators are passed to the Pipeline as a list of estimators. This could be the way to go in Hyperactive as well. Just passing a list of Optimizers to a Composite-class. An alternative approach would be a builder pattern, like:

comp = CompositeOptimizer(...)
comp.add_optimizer(RandomSearch)
comp.add_other_stuff()
comp.add_condition()
comp.add_optimizer(HillClimbing)

This would make sense if we have another things as optimizers, that we want to add (in the future). Maybe additional conditions, like if-else conditions, that decide which optimizer to choose next.

SimonBlanke avatar Feb 17 '25 09:02 SimonBlanke