saealib.SteadyStateStrategy#

class saealib.SteadyStateStrategy[ソース]#

ベースクラス: DirectStrategy

Evaluate one candidate per step and refill asynchronous worker slots.

Methods

__init__

build_graph

Build the graph view of the steady-state pipeline.

build_pipeline

Return the strategy's high-level Pipeline description.

contract

Return the strategy contract.

step

Perform one generation step: generate, score, evaluate, and update.

Method Details

SteadyStateStrategy.__init__()[ソース]#
戻り値の型:

None

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

Build the graph view of the steady-state pipeline.

パラメータ:

provider (ComponentProvider)

戻り値の型:

ComponentGraph

SteadyStateStrategy.build_pipeline(provider)#

Return the strategy's high-level Pipeline description.

パラメータ:

provider (ComponentProvider)

戻り値の型:

Pipeline

SteadyStateStrategy.contract()#

Return the strategy contract.

戻り値の型:

ComponentContract

SteadyStateStrategy.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