Annealing design
smac.random_design.annealing_design
#
CosineAnnealingRandomDesign
#
CosineAnnealingRandomDesign(
min_probability: float,
max_probability: float,
restart_iteration: int,
seed: int = 0,
)
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.
Source code in smac/random_design/annealing_design.py
next_iteration
#
Moves to the next iteration and set self._probability
.