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

Constructor Details

#initialize(**args) ⇒ GoogleCloudMlV1StudyConfigParameterSpec

Returns a new instance of GoogleCloudMlV1StudyConfigParameterSpec.



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

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



354
355
356
# File 'generated/google/apis/ml_v1/classes.rb', line 354

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



361
362
363
# File 'generated/google/apis/ml_v1/classes.rb', line 361

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



366
367
368
# File 'generated/google/apis/ml_v1/classes.rb', line 366

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



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

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



376
377
378
# File 'generated/google/apis/ml_v1/classes.rb', line 376

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)


381
382
383
# File 'generated/google/apis/ml_v1/classes.rb', line 381

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



386
387
388
# File 'generated/google/apis/ml_v1/classes.rb', line 386

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



391
392
393
# File 'generated/google/apis/ml_v1/classes.rb', line 391

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



396
397
398
# File 'generated/google/apis/ml_v1/classes.rb', line 396

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)


401
402
403
# File 'generated/google/apis/ml_v1/classes.rb', line 401

def scale_type
  @scale_type
end

#typeString

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

Returns:

  • (String)


406
407
408
# File 'generated/google/apis/ml_v1/classes.rb', line 406

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



413
414
415
416
417
418
419
420
421
422
423
424
425
# File 'generated/google/apis/ml_v1/classes.rb', line 413

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