Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec

Returns a new instance of GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec.



15925
15926
15927
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15925

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

Instance Attribute Details

#metricGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec

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



15907
15908
15909
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15907

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)


15913
15914
15915
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15913

def multi_trial_algorithm
  @multi_trial_algorithm
end

#search_trial_specGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec

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



15918
15919
15920
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15918

def search_trial_spec
  @search_trial_spec
end

#train_trial_specGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec

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



15923
15924
15925
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15923

def train_trial_spec
  @train_trial_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15930
15931
15932
15933
15934
15935
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15930

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