[SearchSpace] Allow None
/ bool
as a valid value in Categorical/Constant
#124
Milestone
None
/ bool
as a valid value in Categorical/Constant
#124
Right now, the only accepted values are
Iterable[float | int | str]
and the default is the same, i.e.float | int | str | None = None
.There's no real restriction for this other than it needs to be tracked down where things like the following might happen,
if default
... (which would also not work for0
fyi), and replace them withif default is not NotSet
whereNotSet
follows thenSentinal
pattern (it's justNotSet = object()
and you check if it was not set by doingif default is NotSet
)For example, one thing that would need to change is the following:
neps/neps/search_spaces/search_space.py
Lines 735 to 737 in 82b4890
EDIT: apparently I already did some of this a while back but didn't complete it nor test it...
neps/neps/search_spaces/search_space.py
Lines 795 to 798 in 82b4890
The text was updated successfully, but these errors were encountered: