smac.acquisition.maximizer.helpers¶
Classes¶
|
Helper class to interleave random configurations in a list of challengers. |
Interfaces¶
- class smac.acquisition.maximizer.helpers.ChallengerList(configspace, challenger_callback, random_design=<smac.random_design.probability_design.ProbabilityRandomDesign object>)[source]¶
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.
- Parameters:
configspace (ConfigurationSpace)
challenger_callback (Callable) – Callback function which returns a list of challengers (without interleaved random configurations), must a be a python closure.
random_design (AbstractRandomDesign | None, defaults to ModulusRandomDesign(modulus=2.0)) – Which random design should be used.