Source code for smac.utils.test_helpers

from ConfigSpace.configuration_space import ConfigurationSpace
from ConfigSpace.hyperparameters import UniformFloatHyperparameter


[docs]def get_branin_config_space() -> ConfigurationSpace: """TODO""" cs = ConfigurationSpace() cs.add_hyperparameter(UniformFloatHyperparameter('x', -5, 10)) cs.add_hyperparameter(UniformFloatHyperparameter('y', 0, 15)) return cs