Skip to content

Legal values for hyperparameter #95

@janvanrijn

Description

@janvanrijn

Constants can not be a boolean, neither can they be None. Is there any reason for this? I think there are many cases where we want them to be either of these.

Traceback (most recent call last):
  File "/home/janvanrijn/projects/sklearn-bot/examples/run_on_task.py", line 39, in <module>
    run()
  File "/home/janvanrijn/projects/sklearn-bot/examples/run_on_task.py", line 32, in run
    configuration_space = sklearnbot.config_spaces.get_config_space(args.classifier, None)
  File "/home/janvanrijn/projects/sklearn-bot/sklearnbot/config_spaces/bootstrap.py", line 19, in get_config_space
    return sklearnbot.config_spaces.decision_tree.get_hyperparameter_search_space(seed)
  File "/home/janvanrijn/projects/sklearn-bot/sklearnbot/config_spaces/decision_tree.py", line 21, in get_hyperparameter_search_space
    'max_leaf_nodes', None, meta={'component': 'decisiontreeclassifier'})
  File "ConfigSpace/hyperparameters.pyx", line 122, in ConfigSpace.hyperparameters.Constant.__init__
TypeError: Constant value is of type <class 'NoneType'>, but only the following types are allowed: (<class 'int'>, <class 'float'>, <class 'str'>)

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