Skip to content

Proposal to handle None in CategoricalHyperparameters #166

Closed
@Yard1

Description

@Yard1

As explained in #104, None cannot be used as a possible value because CS uses it to mark disabled hyperparameters. This can cause issues when None is a possible value for a hyperparameter, necessitating workarounds like using a string. However, I would like to propose a solution that should be simple to implement.

Instead of using None to mark disabled hyperparameters, a dummy class would be created for that sole purpose, with null checks replaced by isinstance(x, dummy_class) checks. That class would be only used internally.

I believe that to be a quick and viable solution to this issue. I would be happy to work on it myself, but I do not know the codebase well enough to do it without assistance. @mfeurer

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