Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec
- 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
-
#metric ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec
Represents a metric to optimize.
-
#multi_trial_algorithm ⇒ String
The multi-trial Neural Architecture Search (NAS) algorithm type.
-
#search_trial_spec ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec
Represent spec for search trials.
-
#train_trial_spec ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec
Represent spec for train trials.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec
constructor
A new instance of GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec
Returns a new instance of GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec.
16237 16238 16239 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16237 def initialize(**args) update!(**args) end |
Instance Attribute Details
#metric ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec
Represents a metric to optimize.
Corresponds to the JSON property metric
16219 16220 16221 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16219 def metric @metric end |
#multi_trial_algorithm ⇒ String
The multi-trial Neural Architecture Search (NAS) algorithm type. Defaults to
REINFORCEMENT_LEARNING
.
Corresponds to the JSON property multiTrialAlgorithm
16225 16226 16227 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16225 def multi_trial_algorithm @multi_trial_algorithm end |
#search_trial_spec ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec
Represent spec for search trials.
Corresponds to the JSON property searchTrialSpec
16230 16231 16232 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16230 def search_trial_spec @search_trial_spec end |
#train_trial_spec ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec
Represent spec for train trials.
Corresponds to the JSON property trainTrialSpec
16235 16236 16237 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16235 def train_trial_spec @train_trial_spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16242 16243 16244 16245 16246 16247 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16242 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 |