Documentation for Categorical
Class for defining a definite list of values.
Source code in photonai/optimization/hyperparameters.py
class Categorical(PhotonHyperparam):
"""
Class for defining a definite list of values.
"""
def __init__(self, values: list):
"""
Initialize the object.
Parameters:
values:
Definite list of hyperparameter values.
"""
super(Categorical, self).__init__(values)
def __getitem__(self, item):
return self.values.__getitem__(item)
__init__(self, values)
special
Initialize the object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
values |
list |
Definite list of hyperparameter values. |
required |
Source code in photonai/optimization/hyperparameters.py
def __init__(self, values: list):
"""
Initialize the object.
Parameters:
values:
Definite list of hyperparameter values.
"""
super(Categorical, self).__init__(values)