saealib.GenerationBasedStrategy#

class saealib.GenerationBasedStrategy(gen_ctrl)[ソース]#

ベースクラス: OptimizationStrategy

Generation-based strategy.

パラメータ:

gen_ctrl (int) -- Number of surrogate-only generations executed inside each step() call before one generation of true objective evaluation.

Methods

__init__

build_graph

Lower the structured generation-based Pipeline to its graph.

build_pipeline

Describe the strategy as a structured Pipeline DSL.

contract

Return the strategy contract.

step

Run gen_ctrl surrogate-only generations, then one true-evaluation step.

Method Details

GenerationBasedStrategy.__init__(gen_ctrl)[ソース]#
パラメータ:

gen_ctrl (int)

戻り値の型:

None

GenerationBasedStrategy.build_graph(provider)[ソース]#

Lower the structured generation-based Pipeline to its graph.

パラメータ:

provider (ComponentProvider)

戻り値の型:

ComponentGraph

GenerationBasedStrategy.build_pipeline(provider)[ソース]#

Describe the strategy as a structured Pipeline DSL.

パラメータ:

provider (ComponentProvider)

戻り値の型:

Pipeline

GenerationBasedStrategy.contract()#

Return the strategy contract.

戻り値の型:

ComponentContract

GenerationBasedStrategy.step(ctx, provider)[ソース]#

Run gen_ctrl surrogate-only generations, then one true-evaluation step.

Rebuilds the pipeline each call so component/parameter changes take effect immediately.

パラメータ:
  • ctx (OptimizationState) -- Current optimization context.

  • provider (ComponentProvider) -- Component provider.

戻り値の型:

OptimizationState