Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::StudySpec::ParameterSpec::DiscreteValueSpec (v0.9.1)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::StudySpec::ParameterSpec::DiscreteValueSpec.

Value specification for a parameter in DISCRETE type.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#default_value

def default_value() -> ::Float
Returns
  • (::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 Vizier service. Not supported by HyperparamterTuningJob or TrainingPipeline.

#default_value=

def default_value=(value) -> ::Float
Parameter
  • 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 Vizier service. Not supported by HyperparamterTuningJob or TrainingPipeline.

Returns
  • (::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 Vizier service. Not supported by HyperparamterTuningJob or TrainingPipeline.

#values

def values() -> ::Array<::Float>
Returns
  • (::Array<::Float>) — 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.

#values=

def values=(value) -> ::Array<::Float>
Parameter
  • value (::Array<::Float>) — 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
  • (::Array<::Float>) — 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.