saealib.PreSelectionStrategy#
- class saealib.PreSelectionStrategy(n_candidates, n_select)[ソース]#
ベースクラス:
OptimizationStrategyPre-selection strategy.
Generates
n_candidatesoffspring, scores them with the surrogate, and true-evaluates only the topn_selectcandidates.- パラメータ:
n_candidates (int) -- Number of candidates to generate and score with the surrogate.
n_select (int) -- Number of top-scoring candidates to evaluate with the true objective function.
Methods
Initialize PreSelectionStrategy. |
|
Build the canonical pre-selection strategy graph. |
|
Return the strategy's high-level Pipeline description. |
|
Return the strategy contract. |
|
Generate a large candidate pool, screen with surrogate, true-evaluate top-k. |
Method Details
- PreSelectionStrategy.__init__(n_candidates, n_select)[ソース]#
Initialize PreSelectionStrategy.
- パラメータ:
n_candidates (int) -- Number of candidates to generate and score with the surrogate.
n_select (int) -- Number of top-scoring candidates to evaluate with the true objective function.
- PreSelectionStrategy.build_graph(provider)[ソース]#
Build the canonical pre-selection strategy graph.
- パラメータ:
provider (ComponentProvider)
- 戻り値の型:
- PreSelectionStrategy.build_pipeline(provider)#
Return the strategy's high-level Pipeline description.
- パラメータ:
provider (ComponentProvider)
- 戻り値の型:
- PreSelectionStrategy.contract()#
Return the strategy contract.
- 戻り値の型:
- PreSelectionStrategy.step(ctx, provider)[ソース]#
Generate a large candidate pool, screen with surrogate, true-evaluate top-k.
Rebuilds the pipeline each call so component/parameter changes take effect immediately.
- パラメータ:
ctx (OptimizationState) -- Current optimization context.
provider (ComponentProvider) -- Component provider.
- 戻り値:
Updated state after one generation step.
- 戻り値の型:
OptimizationState