automl / ConfigSpace

Domain specific language for configuration spaces in Python/Cython. Useful for hyperparameter optimization and algorithm configuration.
https://automl.github.io/ConfigSpace/
Other
193 stars 89 forks source link

[Bug] Hyperparameters can set illegal default values when log=True #330

Open Neonkraft opened 1 year ago

Neonkraft commented 1 year ago

The following code crashes, because NormalFloatHyperparameter attempts to set a default value without respecting the bounds.

cs = ConfigurationSpace(
    name="myspace",
    space={
        "a": Float("a", bounds=(1, 2), distribution=Normal(1, 0), log=True),
    },
)

I've observed the same problem with {Normal/Beta}{Float/Integer}Hyperparameter.

eddiebergman commented 2 months ago

This example seems fixed in #346! Will hopefully be released next week :)