saealib.IndividualBasedStrategy

class saealib.IndividualBasedStrategy(evaluation_ratio=0.1)[source]

Bases: OptimizationStrategy

Individual-based strategy.

Parameters:

evaluation_ratio (float)

Methods

__init__

Initialize IndividualBasedStrategy.

step

Score all offspring with the surrogate, then true-evaluate the top fraction.

Method Details

IndividualBasedStrategy.__init__(evaluation_ratio=0.1)[source]

Initialize IndividualBasedStrategy.

Parameters:

evaluation_ratio (float) – Ratio of offspring selected for true objective evaluation. The top evaluation_ratio fraction of offspring are evaluated with the real objective function; the rest are discarded after surrogate scoring. The number of neighbors for local surrogate fitting is now configured on the SurrogateManager (e.g. LocalSurrogateManager).

IndividualBasedStrategy.step(ctx, provider)[source]

Score all offspring with the surrogate, then true-evaluate the top fraction.

Parameters:
  • ctx (OptimizationContext) – Current optimization context.

  • provider (ComponentProvider) – Component provider.

Return type:

None