smac.tae.execute_ta_run_old module

class smac.tae.execute_ta_run_old.ExecuteTARunOld(ta: Union[List[str], Callable], stats: smac.stats.stats.Stats, run_obj: str = 'runtime', par_factor: int = 1, cost_for_crash: float = 2147483647.0, abort_on_first_run_crash: bool = True)

Bases: smac.tae.serial_runner.SerialRunner

Executes a target algorithm run with a given configuration on a given instance and some resource limitations. Uses the original SMAC/PILS format (SMAC < v2.10)

_abc_impl = <_abc._abc_data object>
_call_ta(config: ConfigSpace.configuration_space.Configuration, instance: str, instance_specific: str, cutoff: float, seed: int) Tuple[str, str]
results: typing.List[typing.Tuple[RunInfo, RunValue]]
run(config: ConfigSpace.configuration_space.Configuration, instance: Optional[str] = None, cutoff: Optional[float] = None, seed: int = 12345, budget: Optional[float] = 0.0, instance_specific: str = '0') Tuple[smac.tae.StatusType, float, float, Dict]

Runs target algorithm <self.ta> with configuration <config> on instance <instance> with instance specifics <specifics> for at most <cutoff> seconds and random seed <seed>

  • config (Configuration) – Dictionary param -> value

  • instance (string, optional) – Problem instance

  • cutoff (float) – Runtime cutoff

  • seed (int) – Random seed

  • budget (float, optional) – A positive, real-valued number representing an arbitrary limit to the target algorithm. Handled by the target algorithm internally. Currently ignored

  • instance_specific (str) – Instance specific information (e.g., domain file or solution)


  • status (enum of StatusType (int)) – {SUCCESS, TIMEOUT, CRASHED, ABORT}

  • cost (float) – cost/regret/quality/runtime (float) (None, if not returned by TA)

  • runtime (float) – runtime (None if not returned by TA)

  • additional_info (dict) – all further additional run information