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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

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


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