mlos_core.spaces.converters.util module¶
Helper functions for config space converters.
- mlos_core.spaces.converters.util.monkey_patch_cs_quantization(cs: ConfigurationSpace) ConfigurationSpace ¶
Monkey-patch quantization into the Hyperparameters of a ConfigSpace.
- Parameters:
- csConfigurationSpace
ConfigSpace to patch.
- Returns:
- csConfigurationSpace
Patched ConfigSpace.
- mlos_core.spaces.converters.util.monkey_patch_hp_quantization(hp: Hyperparameter) Hyperparameter ¶
Monkey-patch quantization into the Hyperparameter.
Temporary workaround to dropped quantization support in ConfigSpace 1.0 See Also: <https://github.com/automl/ConfigSpace/issues/390>
- Parameters:
- hpHyperparameter
ConfigSpace hyperparameter to patch.
- Returns:
- hpHyperparameter
Patched hyperparameter.