Helpers
smac.acquisition.maximizer.helpers
#
ChallengerList
#
ChallengerList(
configspace: ConfigurationSpace,
challenger_callback: Callable,
random_design: (
AbstractRandomDesign | None
) = ProbabilityRandomDesign(
seed=0, probability=0.08447232371720552
),
)
Bases: Iterator
Helper class to interleave random configurations in a list of challengers.
Provides an iterator which returns a random configuration in each second iteration. Reduces time necessary to generate a list of new challengers as one does not need to sample several hundreds of random configurations in each iteration which are never looked at.
| PARAMETER | DESCRIPTION |
|---|---|
configspace
|
TYPE:
|
challenger_callback
|
Callback function which returns a list of challengers (without interleaved random configurations), must a be a python closure.
TYPE:
|
random_design
|
Which random design should be used.
TYPE:
|