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: Strategy

Wrap a strategy with a preference-model pre-screen.

Parameters:
innerStrategy

The search engine; its pop_size is the pool size.

n_showint

Candidates shown to the evaluator per query.

modelPreferenceModel, optional

Default KernelBT (or LinearBT for fewer than 15 comparisons).

explorefloat

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_pairsint

Comparisons needed before the model is trusted.

confidencefloat

Pair duels whose model probability exceeds this value are decided without asking.

mode{“screen”, “preselect”}

"screen": the inner population is a pool from which the n_show best-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 with n_candidates - 1 mutants of itself and only the best-predicted one is shown (pre-selection; Emmerich et al., 2002; Loshchilov et al., 2010).

n_candidatesint

Candidates per shown offspring in "preselect" mode.

setup(problem, rng=None, ids=None, initial=None)[source]#

Bind to a problem; called by Session.

steer(direction)[source]#

Add a verbal-steering bias (unit-cube displacement) to new offspring.

Examples using easyiec.strategies.SurrogateAssisted#

Fighting fatigue with a surrogate of the evaluator

Fighting fatigue with a surrogate of the evaluator