smac.runhistory.encoder.boing_encoder¶
Classes¶
|
A transformer that transform the RunHistroy to vectors. |
|
Interfaces¶
- class smac.runhistory.encoder.boing_encoder.RunHistoryRawEncoder(scenario, considered_states=[<StatusType.SUCCESS: 1>, <StatusType.CRASHED: 3>, <StatusType.MEMORYOUT: 5>, <StatusType.DONOTADVANCE: 6>], lower_budget_states=[], scale_percentage=5, seed=None)[source]¶
Bases:
RunHistoryEncoder
A transformer that transform the RunHistroy to vectors. This set of classes will return the raw cost values in addition to the transformed cost values. The raw cost values can then be applied for local BO approaches.
- transform_raw_values(values)[source]¶
Returns the raw input values before transformation.
- Return type:
ndarray
- transform_with_raw(runhistory, budget_subset=None)[source]¶
Returns vector representation of runhistory; if imputation is disabled, censored (TIMEOUT with time < cutoff) will be skipped. This function returns both the raw and transformed cost values
- Parameters:
runhistory (smac.runhistory.runhistory.RunHistory) – Runhistory containing all evaluated configurations/instances
budget_subset (list of budgets to consider) –
- Return type:
tuple
[ndarray
,ndarray
,ndarray
]- Returns:
X (numpy.ndarray) – configuration vector x instance features
Y (numpy.ndarray) – cost values
Y_raw (numpy.ndarray) – cost values before transformation