saealib.TellStage#
- class saealib.TellStage(algorithm, *, channel='true')[ソース]#
ベースクラス:
StageUpdate 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 callsalgorithm.tell().- パラメータ:
algorithm (Algorithm) -- The evolutionary algorithm that updates the population.
channel (FeedbackChannel)
Methods
Initialize base Stage attributes. |
|
Return this stage's structural and direct state-access contract. |
|
Execute this stage and return the updated state. |
|
Expand into per-step lines via |
|
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.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