pyMAISE.Choice
- class pyMAISE.Choice(values, ordered=None, default=None, parent_name=None, parent_values=None)[source]
Bases:
HyperParametersDefine choice hyperparameter. This is used in neural network hyperparameter tuning. This can be used for string or other parameters where a range is not applicable.
Refer to KerasTuner’s documentation for information on the arguments [C+15].
Methods
hp(hp, hp_name)Create an instance of
keras_tuner.HyperParameters.Choice.Attributes
The possible choices for the hyperparameter.
- hp(hp, hp_name)[source]
Create an instance of
keras_tuner.HyperParameters.Choice.- Parameters:
hp (keras_tuner.HyperParameters) – Base hyperparameter class.
hp_name (str) – Name of the hyperparameter.
- Returns:
choice_hp – Choice KerasTuner hyperparameter.
- Return type:
keras_tuner.HyperParameters.Choice
- property values
The possible choices for the hyperparameter.
- Type:
list of int, float, str, or bool