Skip to content

Documentation for BooleanSwitch

Boolean switch.

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

Source code in photonai/optimization/hyperparameters.py
class BooleanSwitch(PhotonHyperparam):
    """Boolean switch.

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

    """
    def __init__(self):
        """Initialize the object."""
        super(BooleanSwitch, self).__init__([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])