Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PairwiseMetricInstance

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

Pairwise metric instance. Usually one instance corresponds to one row in an evaluation dataset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1PairwiseMetricInstance

Returns a new instance of GoogleCloudAiplatformV1PairwiseMetricInstance.



18036
18037
18038
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18036

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

Instance Attribute Details

#json_instanceString

Instance specified as a json string. String key-value pairs are expected in the json_instance to render PairwiseMetricSpec.instance_prompt_template. Corresponds to the JSON property jsonInstance

Returns:

  • (String)


18034
18035
18036
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18034

def json_instance
  @json_instance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18041
18042
18043
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18041

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