Skip to content

Commit

Permalink
add that None is forbidden in categorical and ordinal hyperparameters
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeurer committed Sep 10, 2020
1 parent 05dd5f5 commit 6074154
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ConfigSpace/hyperparameters.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1243,6 +1243,10 @@ cdef class CategoricalHyperparameter(Hyperparameter):

Its values are sampled from a set of ``values``.

``None`` is a forbidden value, please use a string constant instead and parse
it in your own code, see `here <https://github.com/automl/ConfigSpace/issues/159>_`
for further details.

Example
-------

Expand Down Expand Up @@ -1504,6 +1508,10 @@ cdef class OrdinalHyperparameter(Hyperparameter):
Its values are sampled form a ``sequence`` of values.
The sequence of values from a ordinal hyperparameter is ordered.

``None`` is a forbidden value, please use a string constant instead and parse
it in your own code, see `here <https://github.com/automl/ConfigSpace/issues/159>_`
for further details.

Example
-------

Expand Down

0 comments on commit 6074154

Please sign in to comment.