smac.utils.configspace¶
Functions¶
|
Impute inactive hyperparameters in configurations with their default. |
|
Returns conditional hyperparameters if values with -1 or smaller are observed. |
|
Return the types of the hyperparameters and the bounds of the hyperparameters and instance features. |
Interfaces¶
- smac.utils.configspace.convert_configurations_to_array(configs)[source]¶
Impute inactive hyperparameters in configurations with their default.
- Parameters:
configs (List[Configuration]) – List of configuration objects.
- Return type:
np.ndarray
- smac.utils.configspace.get_conditional_hyperparameters(X, Y=None)[source]¶
Returns conditional hyperparameters if values with -1 or smaller are observed. X is used if Y is not specified.
- Return type:
ndarray
- smac.utils.configspace.get_types(configspace, instance_features=None)[source]¶
Return the types of the hyperparameters and the bounds of the hyperparameters and instance features.
Warning
The bounds for the instance features are not added in this function.
- Return type:
tuple
[list
[int
],list
[tuple
[float
,float
]]]