Class: Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/ml_v1/classes.rb,
generated/google/apis/ml_v1/representations.rb,
generated/google/apis/ml_v1/representations.rb
Instance Attribute Summary collapse
-
#values ⇒ Array<Float>
Must be specified if type is
DISCRETE
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec
constructor
A new instance of GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec
Returns a new instance of GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec.
218 219 220 |
# File 'generated/google/apis/ml_v1/classes.rb', line 218 def initialize(**args) update!(**args) end |
Instance Attribute Details
#values ⇒ Array<Float>
Must be specified if type is DISCRETE
.
A list of feasible points.
The list should be in strictly increasing order. 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.
Corresponds to the JSON property values
216 217 218 |
# File 'generated/google/apis/ml_v1/classes.rb', line 216 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
223 224 225 |
# File 'generated/google/apis/ml_v1/classes.rb', line 223 def update!(**args) @values = args[:values] if args.key?(:values) end |