smac.random_design.annealing_design

Classes

CosineAnnealingRandomDesign(min_probability, ...)

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) –

check(iteration)[source]

Check if the next configuration should be random.

Parameters:

iteration (int) – Number of the i-th configuration evaluated in a 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.

Return type:

dict[str, Any]

next_iteration()[source]

Moves to the next iteration and set self._probability.

Return type:

None