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

Constructor Details

#initialize(**args) ⇒ GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec

Returns a new instance of GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec.



226
227
228
# File 'generated/google/apis/ml_v1/classes.rb', line 226

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)


219
220
221
# File 'generated/google/apis/ml_v1/classes.rb', line 219

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)


224
225
226
# File 'generated/google/apis/ml_v1/classes.rb', line 224

def min_value
  @min_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



231
232
233
234
# File 'generated/google/apis/ml_v1/classes.rb', line 231

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