Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PairwiseMetricSpec

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

Spec for pairwise metric.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1PairwiseMetricSpec

Returns a new instance of GoogleCloudAiplatformV1PairwiseMetricSpec.



18080
18081
18082
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18080

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

Instance Attribute Details

#metric_prompt_templateString

Required. Metric prompt template for pairwise metric. Corresponds to the JSON property metricPromptTemplate

Returns:

  • (String)


18078
18079
18080
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18078

def metric_prompt_template
  @metric_prompt_template
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18085
18086
18087
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18085

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