smac.initial_design.initial_design¶
Classes
|
Base class for initial design strategies that evaluates multiple configurations. |
- class smac.initial_design.initial_design.InitialDesign(cs, rng, traj_logger, ta_run_limit, configs=None, n_configs_x_params=10, max_config_fracs=0.25, init_budget=None)[source]¶
Bases:
object
Base class for initial design strategies that evaluates multiple configurations.
- Parameters
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 (Optional[List[Configuration]]) – List of initial configurations. Disables the arguments
n_configs_x_params
if given. Either this, orn_configs_x_params
orinit_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
orconfigs
must be provided. Disables the argumentn_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
andconfigs
if both are given). Either this, orn_configs_x_params
orconfigs
must be provided.
- cs¶
- Type
ConfigurationSpace
- configs¶
List of configurations to be evaluated
- Type
List[Configuration]