Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StudySpecMetricSpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StudySpecMetricSpec
- 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.
-
#safety_config ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig
Used in safe optimization to specify threshold levels and risk tolerance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1StudySpecMetricSpec
constructor
A new instance of GoogleCloudAiplatformV1StudySpecMetricSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1StudySpecMetricSpec
Returns a new instance of GoogleCloudAiplatformV1StudySpecMetricSpec.
29362 29363 29364 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29362 def initialize(**args) update!(**args) end |
Instance Attribute Details
#goal ⇒ String
Required. The optimization goal of the metric.
Corresponds to the JSON property goal
29349 29350 29351 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29349 def goal @goal end |
#metric_id ⇒ String
Required. The ID of the metric. Must not contain whitespaces and must be
unique amongst all MetricSpecs.
Corresponds to the JSON property metricId
29355 29356 29357 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29355 def metric_id @metric_id end |
#safety_config ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig
Used in safe optimization to specify threshold levels and risk tolerance.
Corresponds to the JSON property safetyConfig
29360 29361 29362 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29360 def safety_config @safety_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
29367 29368 29369 29370 29371 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29367 def update!(**args) @goal = args[:goal] if args.key?(:goal) @metric_id = args[:metric_id] if args.key?(:metric_id) @safety_config = args[:safety_config] if args.key?(:safety_config) end |