smac.runhistory.dataclasses¶
Classes¶
|
Key for instance, seed and budget. |
|
Key for instance and seed. |
|
Item of a trajectory. |
|
Information about a trial. |
|
Key of a trial. |
|
Values of a trial. |
Interfaces¶
- class smac.runhistory.dataclasses.InstanceSeedBudgetKey(instance=None, seed=None, budget=None)[source]¶
Bases:
object
Key for instance, seed and budget.
- Parameters:
instance (str | None, defaults to None)
seed (int | None, defaults to None)
budget (float | None, defaults to None)
- class smac.runhistory.dataclasses.InstanceSeedKey(instance=None, seed=None)[source]¶
Bases:
object
Key for instance and seed.
- Parameters:
instance (str | None, defaults to None)
seed (int | None, defaults to None)
- class smac.runhistory.dataclasses.TrajectoryItem(config_ids, costs, trial, walltime)[source]¶
Bases:
object
Item of a trajectory.
- Parameters:
config_ids (list[int]) – Configuration ids of the current incumbents.
costs (list[float | list[float]]) – Costs of the current incumbents. In case of multi-objective, this is a list of lists.
trial (int) – How many trials have been evaluated so far.
walltime (float) – How much walltime has been used so far.
- class smac.runhistory.dataclasses.TrialInfo(config, instance=None, seed=None, budget=None)[source]¶
Bases:
object
Information about a trial.
- Parameters:
config (Configuration)
instance (str | None, defaults to None)
seed (int | None, defaults to None)
budget (float | None, defaults to None)
- get_instance_seed_budget_key()[source]¶
Instantiates and returns an InstanceSeedBudgetKey object.
- Return type:
- class smac.runhistory.dataclasses.TrialKey(config_id, instance=None, seed=None, budget=None)[source]¶
Bases:
object
Key of a trial.
- Parameters:
config_id (int)
instance (str | None, defaults to None)
seed (int | None, defaults to None)
budget (float | None, defaults to None)
- class smac.runhistory.dataclasses.TrialValue(cost, time=0.0, status=StatusType.SUCCESS, starttime=0.0, endtime=0.0, additional_info=<factory>)[source]¶
Bases:
object
Values of a trial.
- Parameters:
cost (float | list[float])
time (float, defaults to 0.0)
status (StatusType, defaults to StatusType.SUCCESS)
starttime (float, defaults to 0.0)
endtime (float, defaults to 0.0)
additional_info (dict[str, Any], defaults to {})