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

Link copied to clipboard

The numeric value of a numeric hyperparameter. If you specify a value for this parameter, you can't specify the StringValue parameter.

Link copied to clipboard
Link copied to clipboard

The string value of a categorical hyperparameter. If you specify a value for this parameter, you can't specify the NumberValue parameter.

Functions

Link copied to clipboard

Casts this TrialComponentParameterValue as a NumberValue and retrieves its kotlin.Double value. Throws an exception if the TrialComponentParameterValue is not a NumberValue.

Link copied to clipboard

Casts this TrialComponentParameterValue as a NumberValue and retrieves its kotlin.Double value. Returns null if the TrialComponentParameterValue is not a NumberValue.

Link copied to clipboard

Casts this TrialComponentParameterValue as a StringValue and retrieves its kotlin.String value. Throws an exception if the TrialComponentParameterValue is not a StringValue.

Link copied to clipboard

Casts this TrialComponentParameterValue as a StringValue and retrieves its kotlin.String value. Returns null if the TrialComponentParameterValue is not a StringValue.