smac.initial_design.factorial_design module

class smac.initial_design.factorial_design.FactorialInitialDesign(cs: ConfigSpace.configuration_space.ConfigurationSpace, rng: numpy.random.mtrand.RandomState, traj_logger:, ta_run_limit: int, configs: Optional[List[ConfigSpace.configuration_space.Configuration]] = None, n_configs_x_params: Optional[int] = 10, max_config_fracs: float = 0.25, init_budget: Optional[int] = None)[source]

Bases: smac.initial_design.initial_design.InitialDesign

Factorial initial design


List of configurations to be evaluated Don’t pass configs to the constructor; otherwise factorial design is overwritten




  • cs (ConfigurationSpace) – configuration space object

  • rng (np.random.RandomState) – Random state

  • traj_logger (TrajLogger) – Trajectory logging to add new incumbents found by the initial design.

  • ta_run_limit (int) – Number of iterations allowed for the target algorithm

  • configs (typing.Optional[typing.List[Configuration]]) – List of initial configurations. Disables the arguments n_configs_x_params if given. Either this, or n_configs_x_params or init_budget must be provided.

  • n_configs_x_params (int) – how many configurations will be used at most in the initial design (X*D). Either this, or init_budget or configs must be provided. Disables the argument n_configs_x_params if given.

  • max_config_fracs (float) – use at most X*budget in the initial design. Not active if a time limit is given.

  • init_budget (int, optional) – Maximal initial budget (disables the arguments n_configs_x_params and configs if both are given). Either this, or n_configs_x_params or configs must be provided.

_select_configurations() ConfigSpace.configuration_space.Configuration[source]

Selects a single configuration to run


config – initial incumbent configuration

Return type