Class: Google::Apis::MlV1::GoogleCloudMlV1TrialParameter
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1TrialParameter
- 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
Overview
A message representing a parameter to be tuned. Contains the name of the parameter and the suggested value to use for this trial.
Instance Attribute Summary collapse
-
#float_value ⇒ Float
Must be set if ParameterType is DOUBLE or DISCRETE.
-
#int_value ⇒ Fixnum
Must be set if ParameterType is INTEGER Corresponds to the JSON property
intValue
. -
#parameter ⇒ String
The name of the parameter.
-
#string_value ⇒ String
Must be set if ParameterTypeis CATEGORICAL Corresponds to the JSON property
stringValue
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1TrialParameter
constructor
A new instance of GoogleCloudMlV1TrialParameter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1TrialParameter
Returns a new instance of GoogleCloudMlV1TrialParameter.
453 454 455 |
# File 'generated/google/apis/ml_v1/classes.rb', line 453 def initialize(**args) update!(**args) end |
Instance Attribute Details
#float_value ⇒ Float
Must be set if ParameterType is DOUBLE or DISCRETE.
Corresponds to the JSON property floatValue
436 437 438 |
# File 'generated/google/apis/ml_v1/classes.rb', line 436 def float_value @float_value end |
#int_value ⇒ Fixnum
Must be set if ParameterType is INTEGER
Corresponds to the JSON property intValue
441 442 443 |
# File 'generated/google/apis/ml_v1/classes.rb', line 441 def int_value @int_value end |
#parameter ⇒ String
The name of the parameter.
Corresponds to the JSON property parameter
446 447 448 |
# File 'generated/google/apis/ml_v1/classes.rb', line 446 def parameter @parameter end |
#string_value ⇒ String
Must be set if ParameterTypeis CATEGORICAL
Corresponds to the JSON property stringValue
451 452 453 |
# File 'generated/google/apis/ml_v1/classes.rb', line 451 def string_value @string_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
458 459 460 461 462 463 |
# File 'generated/google/apis/ml_v1/classes.rb', line 458 def update!(**args) @float_value = args[:float_value] if args.key?(:float_value) @int_value = args[:int_value] if args.key?(:int_value) @parameter = args[:parameter] if args.key?(:parameter) @string_value = args[:string_value] if args.key?(:string_value) end |