saealib.SteadyStateStrategy#

class saealib.SteadyStateStrategy[source]#

Bases: 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__()[source]#
Return type:

None

SteadyStateStrategy.build_graph(provider)[source]#

Build the graph view of the steady-state pipeline.

Parameters:

provider (ComponentProvider)

Return type:

ComponentGraph

SteadyStateStrategy.build_pipeline(provider)#

Return the strategy’s high-level Pipeline description.

Parameters:

provider (ComponentProvider)

Return type:

Pipeline

SteadyStateStrategy.contract()#

Return the strategy contract.

Return type:

ComponentContract

SteadyStateStrategy.step(ctx, provider)#

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

Parameters:
  • ctx (OptimizationState) – Current optimization context.

  • provider (ComponentProvider) – Component provider.

Returns:

Updated state returned by the pipeline.

Return type:

OptimizationState