ConfigSpace icon indicating copy to clipboard operation
ConfigSpace copied to clipboard

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

Open Neonkraft opened this issue 2 years ago • 1 comments

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.

Neonkraft avatar Jul 05 '23 14:07 Neonkraft

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

eddiebergman avatar Apr 16 '24 18:04 eddiebergman