Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec

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 question answering correctness metric.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec

Returns a new instance of GoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec.



19524
19525
19526
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 19524

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

Instance Attribute Details

#use_referenceBoolean Also known as: use_reference?

Optional. Whether to use instance.reference to compute question answering correctness. Corresponds to the JSON property useReference

Returns:

  • (Boolean)


19516
19517
19518
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 19516

def use_reference
  @use_reference
end

#versionFixnum

Optional. Which version to use for evaluation. Corresponds to the JSON property version

Returns:

  • (Fixnum)


19522
19523
19524
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 19522

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19529
19530
19531
19532
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 19529

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