-
Notifications
You must be signed in to change notification settings - Fork 96
Closed
Description
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
Labels
No labels