Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PairwiseSummarizationQualityResult

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 summarization quality result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1PairwiseSummarizationQualityResult

Returns a new instance of GoogleCloudAiplatformV1PairwiseSummarizationQualityResult.



17378
17379
17380
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17378

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

Instance Attribute Details

#confidenceFloat

Output only. Confidence for summarization quality score. Corresponds to the JSON property confidence

Returns:

  • (Float)


17366
17367
17368
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17366

def confidence
  @confidence
end

#explanationString

Output only. Explanation for summarization quality score. Corresponds to the JSON property explanation

Returns:

  • (String)


17371
17372
17373
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17371

def explanation
  @explanation
end

#pairwise_choiceString

Output only. Pairwise summarization prediction choice. Corresponds to the JSON property pairwiseChoice

Returns:

  • (String)


17376
17377
17378
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17376

def pairwise_choice
  @pairwise_choice
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17383
17384
17385
17386
17387
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17383

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