Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJobSpecMultiTrialAlgorithmSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

The spec of multi-trial Neural Architecture Search (NAS).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1NasJobSpecMultiTrialAlgorithmSpec

Returns a new instance of GoogleCloudAiplatformV1beta1NasJobSpecMultiTrialAlgorithmSpec.



18474
18475
18476
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18474

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

Instance Attribute Details

#metricGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJobSpecMultiTrialAlgorithmSpecMetricSpec

Represents a metric to optimize. Corresponds to the JSON property metric



18456
18457
18458
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18456

def metric
  @metric
end

#multi_trial_algorithmString

The multi-trial Neural Architecture Search (NAS) algorithm type. Defaults to REINFORCEMENT_LEARNING. Corresponds to the JSON property multiTrialAlgorithm

Returns:

  • (String)


18462
18463
18464
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18462

def multi_trial_algorithm
  @multi_trial_algorithm
end

#search_trial_specGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec

Represent spec for search trials. Corresponds to the JSON property searchTrialSpec



18467
18468
18469
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18467

def search_trial_spec
  @search_trial_spec
end

#train_trial_specGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec

Represent spec for train trials. Corresponds to the JSON property trainTrialSpec



18472
18473
18474
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18472

def train_trial_spec
  @train_trial_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18479
18480
18481
18482
18483
18484
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18479

def update!(**args)
  @metric = args[:metric] if args.key?(:metric)
  @multi_trial_algorithm = args[:multi_trial_algorithm] if args.key?(:multi_trial_algorithm)
  @search_trial_spec = args[:search_trial_spec] if args.key?(:search_trial_spec)
  @train_trial_spec = args[:train_trial_spec] if args.key?(:train_trial_spec)
end