saealib.TellStage#

class saealib.TellStage(algorithm, *, channel='true')[ソース]#

ベースクラス: Stage

Update the population via the algorithm's tell() method.

Reads state.offspring (the full candidate population, including both surrogate-scored and true-evaluated individuals, as the algorithm expects) and calls algorithm.tell().

パラメータ:
  • algorithm (Algorithm) -- The evolutionary algorithm that updates the population.

  • channel (FeedbackChannel)

Methods

__init__

Initialize base Stage attributes.

contract

Return this stage's structural and direct state-access contract.

execute

Execute this stage and return the updated state.

to_pseudocode

Expand into per-step lines via Algorithm.tell_notation.

to_text

Render this stage as a plain-text algorithmic line.

Method Details

TellStage.__init__(algorithm, *, channel='true')[ソース]#

Initialize base Stage attributes.

パラメータ:
  • name (str, optional) -- Override the class-level name.

  • label (str, optional) -- Override the class-level label.

  • notation (str, optional) -- Override the class-level notation.

  • algorithm (Algorithm | Proposer | FeedbackConsumer)

  • channel (FeedbackChannel)

戻り値の型:

None

TellStage.contract()[ソース]#

Return this stage's structural and direct state-access contract.

戻り値の型:

ComponentContract

TellStage.execute(state)[ソース]#

Execute this stage and return the updated state.

パラメータ:

state (OptimizationState) -- Current optimization state.

戻り値:

Updated state.

戻り値の型:

OptimizationState

TellStage.to_pseudocode(*, expand=False, indent=0)[ソース]#

Expand into per-step lines via Algorithm.tell_notation.

パラメータ:
  • expand (bool)

  • indent (int)

戻り値の型:

str

TellStage.to_text(*, expand=False, indent=0)#

Render this stage as a plain-text algorithmic line.

パラメータ:
  • expand (bool)

  • indent (int)

戻り値の型:

str