Skip to content

ENH: float configuration limited to 1e-13 in log space #429

Description

@sdtemple

Description

This is a feature request for smaller floating point values. The Float hyperparameter with log=True encounters numerical precision issues when sampling very small positive values, specifically those below approximately 5e-14. This limitation prevents users from properly tuning hyperparameters that have scientifically valid ranges extending to very small values. For instance, the rcond parameter in numpy.linalg.pinv has a default value of 1e-15.

Current Behavior

import ConfigSpace as CS
from ConfigSpace import ConfigurationSpace, Float

cs = CS.ConfigurationSpace(seed=42)

rcond = CS.Float(
        name="rcond",
        bounds=(1e-15, 1e-2),
        log=True)

cs.add(
    [
        rtol,
    ]
)

configs = cs.sample_configuration(size=5000)
# ValueError: Hyperparameter 'rcond' has illegal settings

Version

1.2.2

Interest in helping

Yes.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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