Google Cloud Ai Platform V1 Client - Class DiscreteValueSpec (0.25.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class DiscreteValueSpec.

Value specification for a parameter in DISCRETE type.

Generated from protobuf message google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec

Namespace

Google \ Cloud \ AIPlatform \ V1 \ StudySpec \ ParameterSpec

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ values array

Required. A list of possible values. The list should be in increasing order and at least 1e-10 apart. For instance, this parameter might have possible settings of 1.5, 2.5, and 4.0. This list should not contain more than 1,000 values.

↳ default_value float

A default value for a DISCRETE parameter that is assumed to be a relatively good starting point. Unset value signals that there is no offered starting point. It automatically rounds to the nearest feasible discrete point. Currently only supported by the Vertex AI Vizier service. Not supported by HyperparameterTuningJob or TrainingPipeline.

getValues

Required. A list of possible values.

The list should be in increasing order and at least 1e-10 apart. For instance, this parameter might have possible settings of 1.5, 2.5, and 4.0. This list should not contain more than 1,000 values.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setValues

Required. A list of possible values.

The list should be in increasing order and at least 1e-10 apart. For instance, this parameter might have possible settings of 1.5, 2.5, and 4.0. This list should not contain more than 1,000 values.

Parameter
NameDescription
var float[]
Returns
TypeDescription
$this

getDefaultValue

A default value for a DISCRETE parameter that is assumed to be a relatively good starting point. Unset value signals that there is no offered starting point. It automatically rounds to the nearest feasible discrete point.

Currently only supported by the Vertex AI Vizier service. Not supported by HyperparameterTuningJob or TrainingPipeline.

Returns
TypeDescription
float

hasDefaultValue

clearDefaultValue

setDefaultValue

A default value for a DISCRETE parameter that is assumed to be a relatively good starting point. Unset value signals that there is no offered starting point. It automatically rounds to the nearest feasible discrete point.

Currently only supported by the Vertex AI Vizier service. Not supported by HyperparameterTuningJob or TrainingPipeline.

Parameter
NameDescription
var float
Returns
TypeDescription
$this