easyiec.strategies.SurrogateAssisted#
- class easyiec.strategies.SurrogateAssisted(inner, n_show=6, model=None, explore=0.5, features='genome', min_pairs=10, confidence=0.9, mode='screen', n_candidates=4)[source]#
Bases:
StrategyWrap a strategy with a preference-model pre-screen.
- Parameters:
- inner
Strategy The search engine; its
pop_sizeis the pool size.- n_show
int Candidates shown to the evaluator per query.
- model
PreferenceModel,optional Default
KernelBT(orLinearBTfor fewer than 15 comparisons).- explore
float Weight of the predictive standard deviation in the screening score (upper confidence bound).
- features{“genome”, “phenotype”}
Model inputs: normalized genomes or problem phenotype features.
- min_pairs
int Comparisons needed before the model is trusted.
- confidence
float Pair duels whose model probability exceeds this value are decided without asking.
- mode{“screen”, “preselect”}
"screen": the inner population is a pool from which then_showbest-predicted candidates are shown, the others receive synthetic feedback (Llorà et al., 2005)."preselect": the inner strategy keeps its own population size; every new offspring competes withn_candidates - 1mutants of itself and only the best-predicted one is shown (pre-selection; Emmerich et al., 2002; Loshchilov et al., 2010).- n_candidates
int Candidates per shown offspring in
"preselect"mode.
- inner
Examples using easyiec.strategies.SurrogateAssisted#
Fighting fatigue with a surrogate of the evaluator