Class: Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#valuesArray<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

Returns:

  • (Array<Float>)


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