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.
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec
Returns a new instance of GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec.
202 203 204 |
# File 'generated/google/apis/ml_v1/classes.rb', line 202 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
200 201 202 |
# File 'generated/google/apis/ml_v1/classes.rb', line 200 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
207 208 209 |
# File 'generated/google/apis/ml_v1/classes.rb', line 207 def update!(**args) @values = args[:values] if args.key?(:values) end |