Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec
- 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
Represents a metric to optimize.
Instance Attribute Summary collapse
-
#goal ⇒ String
Required.
-
#metric_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec
constructor
A new instance of GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec
Returns a new instance of GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec.
15370 15371 15372 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15370 def initialize(**args) update!(**args) end |
Instance Attribute Details
#goal ⇒ String
Required. The optimization goal of the metric.
Corresponds to the JSON property goal
15363 15364 15365 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15363 def goal @goal end |
#metric_id ⇒ String
Required. The ID of the metric. Must not contain whitespaces.
Corresponds to the JSON property metricId
15368 15369 15370 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15368 def metric_id @metric_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15375 15376 15377 15378 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15375 def update!(**args) @goal = args[:goal] if args.key?(:goal) @metric_id = args[:metric_id] if args.key?(:metric_id) end |