Class: Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec

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) ⇒ GoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec

Returns a new instance of GoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec.



195
196
197
# File 'generated/google/apis/ml_v1/classes.rb', line 195

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#valuesArray<String>

Must be specified if type is CATEGORICAL. The list of possible categories. Corresponds to the JSON property values

Returns:

  • (Array<String>)


193
194
195
# File 'generated/google/apis/ml_v1/classes.rb', line 193

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



200
201
202
# File 'generated/google/apis/ml_v1/classes.rb', line 200

def update!(**args)
  @values = args[:values] if args.key?(:values)
end