smac.tae.execute_ta_run_old¶
Classes
|
Executes a target algorithm run with a given configuration on a given instance and some resource limitations. |
- class smac.tae.execute_ta_run_old.ExecuteTARunOld(ta, stats, multi_objectives=['cost'], run_obj='runtime', par_factor=1, cost_for_crash=2147483647.0, abort_on_first_run_crash=True)[source]¶
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).
- run(config, instance=None, cutoff=None, seed=12345, budget=0.0, instance_specific='0')[source]¶
Runs target algorithm <self.ta> with configuration <config> on instance <instance> with instance specifics.
<specifics> for at most. <cutoff> seconds and random seed <seed>.
- Parameters
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)
- Return type
Tuple
[StatusType
,float
,float
,Dict
]- Returns
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