Skip to main content

ChoiceFunction

Module: opytimizer.hyperheuristics.selection_strategy

Choice Function selection strategy.

Constructor​

ChoiceFunction(alpha: float = 0.5, beta: float = 0.5) -> None

Parameters​

ParameterTypeDefaultDescription
alphafloat0.5—
betafloat0.5—

Methods​

select​

select(self, optimizers: List[Any], performance_history: Dict[str, List[float]]) -> Any

Select optimizer using Choice Function.

Returns: (Any): Selected optimizer.

Parameters​

ParameterTypeDefaultDescription
optimizersList[Any]List of available optimizers.
performance_historyDict[str, List[float]]Performance history for each optimizer.