saealib.GenerationBasedStrategy#
- class saealib.GenerationBasedStrategy(gen_ctrl)[source]#
Bases:
OptimizationStrategyGeneration-based strategy.
- Parameters:
gen_ctrl (int) – Number of surrogate-only generations executed inside each
step()call before one generation of true objective evaluation.
Methods
Lower the structured generation-based Pipeline to its graph. |
|
Describe the strategy as a structured Pipeline DSL. |
|
Return the strategy contract. |
|
Run |
Method Details
- GenerationBasedStrategy.build_graph(provider)[source]#
Lower the structured generation-based Pipeline to its graph.
- Parameters:
provider (ComponentProvider)
- Return type:
- GenerationBasedStrategy.build_pipeline(provider)[source]#
Describe the strategy as a structured Pipeline DSL.
- Parameters:
provider (ComponentProvider)
- Return type:
- GenerationBasedStrategy.contract()#
Return the strategy contract.
- Return type:
- GenerationBasedStrategy.step(ctx, provider)[source]#
Run
gen_ctrlsurrogate-only generations, then one true-evaluation step.Rebuilds the pipeline each call so component/parameter changes take effect immediately.
- Parameters:
ctx (OptimizationState) – Current optimization context.
provider (ComponentProvider) – Component provider.
- Return type:
OptimizationState