saealib.DirectStrategy#

class saealib.DirectStrategy(n_offspring=None)[ソース]#

ベースクラス: OptimizationStrategy

Plain 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

__init__

build_graph

Build the canonical direct strategy graph.

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

DirectStrategy.__init__(n_offspring=None)[ソース]#
パラメータ:

n_offspring (int | None)

戻り値の型:

None

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

Build the canonical direct strategy graph.

パラメータ:

provider (ComponentProvider)

戻り値の型:

ComponentGraph

DirectStrategy.build_pipeline(provider)#

Return the strategy's high-level Pipeline description.

パラメータ:

provider (ComponentProvider)

戻り値の型:

Pipeline

DirectStrategy.contract()#

Return the strategy contract.

戻り値の型:

ComponentContract

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