Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec

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

Represents a metric to optimize.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec

Returns a new instance of GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec.



15952
15953
15954
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15952

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

Instance Attribute Details

#goalString

Required. The optimization goal of the metric. Corresponds to the JSON property goal

Returns:

  • (String)


15945
15946
15947
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15945

def goal
  @goal
end

#metric_idString

Required. The ID of the metric. Must not contain whitespaces. Corresponds to the JSON property metricId

Returns:

  • (String)


15950
15951
15952
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15950

def metric_id
  @metric_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15957
15958
15959
15960
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15957

def update!(**args)
  @goal = args[:goal] if args.key?(:goal)
  @metric_id = args[:metric_id] if args.key?(:metric_id)
end