Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PointwiseMetricSpec

Inherits:
Object
  • Object
show all
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

Spec for pointwise metric.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1PointwiseMetricSpec

Returns a new instance of GoogleCloudAiplatformV1beta1PointwiseMetricSpec.



23811
23812
23813
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 23811

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

Instance Attribute Details

#metric_prompt_templateString

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

Returns:

  • (String)


23809
23810
23811
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 23809

def metric_prompt_template
  @metric_prompt_template
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23816
23817
23818
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 23816

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