Skip to content

Documentation for BooleanSwitch

Boolean switch.

Class for defining a boolean hyperparameter. Equivalent to Categorical([True, False]).

__init__(self) special

Initialize the object.

Source code in photonai/optimization/hyperparameters.py
def __init__(self):
    """Initialize the object."""
    super(BooleanSwitch, self).__init__([True, False])