Skip to content

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

@Neonkraft

Description

@Neonkraft

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions