class Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpec
Represents a single parameter to optimize.
Attributes
The value spec for a 'CATEGORICAL' parameter. Corresponds to the JSON property `categoricalValueSpec` @return [Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec]
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` @return [Array<Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpec>]
The value spec for a 'DISCRETE' parameter. Corresponds to the JSON property `discreteValueSpec` @return [Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec]
The value spec for a 'DOUBLE' parameter. Corresponds to the JSON property `doubleValueSpec` @return [Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec]
The value spec for an 'INTEGER' parameter. Corresponds to the JSON property `integerValueSpec` @return [Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec]
Required. The parameter name must be unique amongst all ParameterSpecs. Corresponds to the JSON property `parameter` @return [String]
Represents the spec to match categorical values from parent parameter. Corresponds to the JSON property `parentCategoricalValues` @return [Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec]
Represents the spec to match discrete values from parent parameter. Corresponds to the JSON property `parentDiscreteValues` @return [Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec]
Represents the spec to match integer values from parent parameter. Corresponds to the JSON property `parentIntValues` @return [Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec]
How the parameter should be scaled. Leave unset for categorical parameters. Corresponds to the JSON property `scaleType` @return [String]
Required. The type of the parameter. Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File lib/google/apis/ml_v1/classes.rb, line 408 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/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