Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult

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 question answering quality result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult

Returns a new instance of GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult.



18177
18178
18179
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18177

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

Instance Attribute Details

#confidenceFloat

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

Returns:

  • (Float)


18165
18166
18167
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18165

def confidence
  @confidence
end

#explanationString

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

Returns:

  • (String)


18170
18171
18172
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18170

def explanation
  @explanation
end

#pairwise_choiceString

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

Returns:

  • (String)


18175
18176
18177
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18175

def pairwise_choice
  @pairwise_choice
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18182
18183
18184
18185
18186
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18182

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