Class: Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec

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

Returns a new instance of GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec.



242
243
244
# File 'generated/google/apis/ml_v1/classes.rb', line 242

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

Instance Attribute Details

#max_valueFloat

Must be specified if type is DOUBLE. Maximum value of the parameter. Corresponds to the JSON property maxValue

Returns:

  • (Float)


235
236
237
# File 'generated/google/apis/ml_v1/classes.rb', line 235

def max_value
  @max_value
end

#min_valueFloat

Must be specified if type is DOUBLE. Minimum value of the parameter. Corresponds to the JSON property minValue

Returns:

  • (Float)


240
241
242
# File 'generated/google/apis/ml_v1/classes.rb', line 240

def min_value
  @min_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



247
248
249
250
# File 'generated/google/apis/ml_v1/classes.rb', line 247

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