class Google::Apis::MlV1::GoogleCloudMlV1TrialParameter

A message representing a parameter to be tuned. Contains the name of the parameter and the suggested value to use for this trial.

Attributes

float_value[RW]

Must be set if ParameterType is DOUBLE or DISCRETE. Corresponds to the JSON property `floatValue` @return [Float]

int_value[RW]

Must be set if ParameterType is INTEGER Corresponds to the JSON property `intValue` @return [Fixnum]

parameter[RW]

The name of the parameter. Corresponds to the JSON property `parameter` @return [String]

string_value[RW]

Must be set if ParameterTypeis CATEGORICAL Corresponds to the JSON property `stringValue` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/ml_v1/classes.rb, line 453
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/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