Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StudySpecMetricSpec

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) ⇒ GoogleCloudAiplatformV1StudySpecMetricSpec

Returns a new instance of GoogleCloudAiplatformV1StudySpecMetricSpec.



30493
30494
30495
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30493

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)


30480
30481
30482
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30480

def goal
  @goal
end

#metric_idString

Required. The ID of the metric. Must not contain whitespaces and must be unique amongst all MetricSpecs. Corresponds to the JSON property metricId

Returns:

  • (String)


30486
30487
30488
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30486

def metric_id
  @metric_id
end

#safety_configGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig

Used in safe optimization to specify threshold levels and risk tolerance. Corresponds to the JSON property safetyConfig



30491
30492
30493
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30491

def safety_config
  @safety_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



30498
30499
30500
30501
30502
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30498

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