smac.random_design.probability_design

Classes

DynamicProbabilityRandomDesign(probability, ...)

Interleave a random configuration according to a given probability which is decreased over time.

ProbabilityRandomDesign(probability[, seed])

Interleave a random configuration according to a given probability.

Interfaces

class smac.random_design.probability_design.DynamicProbabilityRandomDesign(probability, factor, seed=0)[source]

Bases: AbstractRandomDesign

Interleave a random configuration according to a given probability which is decreased over time.

Parameters:
  • probability (float) – Probability that a configuration will be drawn at random.

  • factor (float) – Multiply the probability by factor in each iteration.

  • seed (int, defaults to 0) – Integer used to initialize the 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.

next_iteration()[source]

Sets the probability to the current value multiplied by factor.

Return type:

None

class smac.random_design.probability_design.ProbabilityRandomDesign(probability, seed=0)[source]

Bases: AbstractRandomDesign

Interleave a random configuration according to a given probability.

Parameters:
  • probability (float) – Probability that a configuration will be drawn at random.

  • seed (int, defaults to 0) – Integer used to initialize the 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.