Class: Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpec

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

Represents a single parameter to optimize.

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

Returns a new instance of GoogleCloudMlV1StudyConfigParameterSpec.



426
427
428
# File 'generated/google/apis/ml_v1/classes.rb', line 426

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

Instance Attribute Details

#categorical_value_specGoogle::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec

The value spec for a 'CATEGORICAL' parameter. Corresponds to the JSON property categoricalValueSpec



370
371
372
# File 'generated/google/apis/ml_v1/classes.rb', line 370

def categorical_value_spec
  @categorical_value_spec
end

#child_parameter_specsArray<Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpec>

A child node is active if the parameter's value matches the child node's matching_parent_values. If two items in child_parameter_specs have the same name, they must have disjoint matching_parent_values. Corresponds to the JSON property childParameterSpecs



378
379
380
# File 'generated/google/apis/ml_v1/classes.rb', line 378

def child_parameter_specs
  @child_parameter_specs
end

#discrete_value_specGoogle::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec

The value spec for a 'DISCRETE' parameter. Corresponds to the JSON property discreteValueSpec



383
384
385
# File 'generated/google/apis/ml_v1/classes.rb', line 383

def discrete_value_spec
  @discrete_value_spec
end

#double_value_specGoogle::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec

The value spec for a 'DOUBLE' parameter. Corresponds to the JSON property doubleValueSpec



388
389
390
# File 'generated/google/apis/ml_v1/classes.rb', line 388

def double_value_spec
  @double_value_spec
end

#integer_value_specGoogle::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec

The value spec for an 'INTEGER' parameter. Corresponds to the JSON property integerValueSpec



393
394
395
# File 'generated/google/apis/ml_v1/classes.rb', line 393

def integer_value_spec
  @integer_value_spec
end

#parameterString

Required. The parameter name must be unique amongst all ParameterSpecs. Corresponds to the JSON property parameter

Returns:

  • (String)


398
399
400
# File 'generated/google/apis/ml_v1/classes.rb', line 398

def parameter
  @parameter
end

#parent_categorical_valuesGoogle::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec

Represents the spec to match categorical values from parent parameter. Corresponds to the JSON property parentCategoricalValues



403
404
405
# File 'generated/google/apis/ml_v1/classes.rb', line 403

def parent_categorical_values
  @parent_categorical_values
end

#parent_discrete_valuesGoogle::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec

Represents the spec to match discrete values from parent parameter. Corresponds to the JSON property parentDiscreteValues



408
409
410
# File 'generated/google/apis/ml_v1/classes.rb', line 408

def parent_discrete_values
  @parent_discrete_values
end

#parent_int_valuesGoogle::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec

Represents the spec to match integer values from parent parameter. Corresponds to the JSON property parentIntValues



413
414
415
# File 'generated/google/apis/ml_v1/classes.rb', line 413

def parent_int_values
  @parent_int_values
end

#scale_typeString

How the parameter should be scaled. Leave unset for categorical parameters. Corresponds to the JSON property scaleType

Returns:

  • (String)


419
420
421
# File 'generated/google/apis/ml_v1/classes.rb', line 419

def scale_type
  @scale_type
end

#typeString

Required. The type of the parameter. Corresponds to the JSON property type

Returns:

  • (String)


424
425
426
# File 'generated/google/apis/ml_v1/classes.rb', line 424

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



431
432
433
434
435
436
437
438
439
440
441
442
443
# File 'generated/google/apis/ml_v1/classes.rb', line 431

def update!(**args)
  @categorical_value_spec = args[:categorical_value_spec] if args.key?(:categorical_value_spec)
  @child_parameter_specs = args[:child_parameter_specs] if args.key?(:child_parameter_specs)
  @discrete_value_spec = args[:discrete_value_spec] if args.key?(:discrete_value_spec)
  @double_value_spec = args[:double_value_spec] if args.key?(:double_value_spec)
  @integer_value_spec = args[:integer_value_spec] if args.key?(:integer_value_spec)
  @parameter = args[:parameter] if args.key?(:parameter)
  @parent_categorical_values = args[:parent_categorical_values] if args.key?(:parent_categorical_values)
  @parent_discrete_values = args[:parent_discrete_values] if args.key?(:parent_discrete_values)
  @parent_int_values = args[:parent_int_values] if args.key?(:parent_int_values)
  @scale_type = args[:scale_type] if args.key?(:scale_type)
  @type = args[:type] if args.key?(:type)
end