Class: Google::Apis::MlV1::GoogleCloudMlV1TrialParameter

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

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

Instance Method Summary collapse

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_valueFloat

Must be set if ParameterType is DOUBLE or DISCRETE. Corresponds to the JSON property floatValue

Returns:

  • (Float)


436
437
438
# File 'generated/google/apis/ml_v1/classes.rb', line 436

def float_value
  @float_value
end

#int_valueFixnum

Must be set if ParameterType is INTEGER Corresponds to the JSON property intValue

Returns:

  • (Fixnum)


441
442
443
# File 'generated/google/apis/ml_v1/classes.rb', line 441

def int_value
  @int_value
end

#parameterString

The name of the parameter. Corresponds to the JSON property parameter

Returns:

  • (String)


446
447
448
# File 'generated/google/apis/ml_v1/classes.rb', line 446

def parameter
  @parameter
end

#string_valueString

Must be set if ParameterTypeis CATEGORICAL Corresponds to the JSON property stringValue

Returns:

  • (String)


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