smac.runhistory.runhistory2epm_boing

Classes

RunHistory2EPM4CostWithRaw(scenario, ...[, ...])

A transformer that transform RunHistroy to vectors, this set of classes will return the raw cost values in addition to the transformed cost values.

RunHistory2EPM4ScaledLogCostWithRaw(...[, ...])

class smac.runhistory.runhistory2epm_boing.RunHistory2EPM4CostWithRaw(scenario, num_params, success_states, impute_censored_data=False, impute_state=None, consider_for_higher_budgets_state=None, imputor=None, scale_perc=5, rng=None, multi_objective_algorithm=None)[source]

Bases: smac.runhistory.runhistory2epm.RunHistory2EPM4Cost

A transformer that transform 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]

Transform function response values. Returns the raw input values before transformation

Parameters

values (np.ndarray) – Response values to be transformed.

Return type

np.ndarray

transform_response_values(values)[source]

Transform function response values. Returns the input values.

Parameters

values (np.ndarray) – Response values to be transformed.

Return type

np.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
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

class smac.runhistory.runhistory2epm_boing.RunHistory2EPM4ScaledLogCostWithRaw(scenario, num_params, success_states, impute_censored_data=False, impute_state=None, consider_for_higher_budgets_state=None, imputor=None, scale_perc=5, rng=None, multi_objective_algorithm=None)[source]

Bases: smac.runhistory.runhistory2epm_boing.RunHistory2EPM4CostWithRaw, smac.runhistory.runhistory2epm.RunHistory2EPM4LogScaledCost

transform_raw_values(values)[source]

Transform function response values. Returns the raw input values before transformation

Parameters

values (np.ndarray) – Response values to be transformed.

Return type

np.ndarray