TrialComponentParameterValue
The value of a hyperparameter. Only one of NumberValue
or StringValue
can be specified.
This object is specified in the CreateTrialComponent request.
Inheritors
Types
The numeric value of a numeric hyperparameter. If you specify a value for this parameter, you can't specify the StringValue
parameter.
The string value of a categorical hyperparameter. If you specify a value for this parameter, you can't specify the NumberValue
parameter.
Functions
Casts this TrialComponentParameterValue as a NumberValue and retrieves its kotlin.Double value. Throws an exception if the TrialComponentParameterValue is not a NumberValue.
Casts this TrialComponentParameterValue as a NumberValue and retrieves its kotlin.Double value. Returns null if the TrialComponentParameterValue is not a NumberValue.
Casts this TrialComponentParameterValue as a StringValue and retrieves its kotlin.String value. Throws an exception if the TrialComponentParameterValue is not a StringValue.
Casts this TrialComponentParameterValue as a StringValue and retrieves its kotlin.String value. Returns null if the TrialComponentParameterValue is not a StringValue.