smac.random_design.annealing_design¶
Classes¶
|
Interleaves a random configuration according to a given probability which is decreased according to a cosine annealing schedule. |
Interfaces¶
- class smac.random_design.annealing_design.CosineAnnealingRandomDesign(min_probability, max_probability, restart_iteration, seed=0)[source]¶
Bases:
AbstractRandomDesign
Interleaves a random configuration according to a given probability which is decreased according to a cosine annealing schedule.
- Parameters:
max_probability (float) – Initial (maximum) probability of a random configuration.
min_probability (float) – Final (minimal) probability of a random configuration used in iteration restart_iteration.
restart_iteration (int) – Restart the annealing schedule every restart_iteration iterations.
seed (int) – Integer used to initialize random state.
- check(iteration)[source]¶
Check, if the next configuration should be random.
- Parameters:
iteration (int) – Number of the i-th configuration evaluated in an SMBO iteration.
- Returns:
Whether the next configuration should be random.
- Return type:
bool
- property meta: dict[str, Any]¶
Returns the meta data of the created object.