saealib.DirectStrategy#
- class saealib.DirectStrategy(n_offspring=None)[ソース]#
ベースクラス:
OptimizationStrategyPlain EA strategy without surrogate scoring.
Every candidate produced by
ask()is evaluated with the true objective function. No surrogate manager is required.- パラメータ:
n_offspring (int | None)
Methods
Build the canonical direct strategy graph. |
|
Return the strategy's high-level Pipeline description. |
|
Return the strategy contract. |
|
Perform one generation step: generate, score, evaluate, and update. |
Method Details
- DirectStrategy.build_graph(provider)[ソース]#
Build the canonical direct strategy graph.
- パラメータ:
provider (ComponentProvider)
- 戻り値の型:
- DirectStrategy.build_pipeline(provider)#
Return the strategy's high-level Pipeline description.
- パラメータ:
provider (ComponentProvider)
- 戻り値の型:
- DirectStrategy.contract()#
Return the strategy contract.
- 戻り値の型:
- DirectStrategy.step(ctx, provider)#
Perform one generation step: generate, score, evaluate, and update.
- パラメータ:
ctx (OptimizationState) -- Current optimization context.
provider (ComponentProvider) -- Component provider.
- 戻り値:
Updated state returned by the pipeline.
- 戻り値の型:
OptimizationState