Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJobSpecMultiTrialAlgorithmSpecMetricSpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJobSpecMultiTrialAlgorithmSpecMetricSpec
- 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
Represents a metric to optimize.
Instance Attribute Summary collapse
-
#goal ⇒ String
Required.
-
#metric_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1NasJobSpecMultiTrialAlgorithmSpecMetricSpec
constructor
A new instance of GoogleCloudAiplatformV1beta1NasJobSpecMultiTrialAlgorithmSpecMetricSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1NasJobSpecMultiTrialAlgorithmSpecMetricSpec
Returns a new instance of GoogleCloudAiplatformV1beta1NasJobSpecMultiTrialAlgorithmSpecMetricSpec.
17281 17282 17283 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17281 def initialize(**args) update!(**args) end |
Instance Attribute Details
#goal ⇒ String
Required. The optimization goal of the metric.
Corresponds to the JSON property goal
17274 17275 17276 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17274 def goal @goal end |
#metric_id ⇒ String
Required. The ID of the metric. Must not contain whitespaces.
Corresponds to the JSON property metricId
17279 17280 17281 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17279 def metric_id @metric_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17286 17287 17288 17289 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17286 def update!(**args) @goal = args[:goal] if args.key?(:goal) @metric_id = args[:metric_id] if args.key?(:metric_id) end |