Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CoherenceResult

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 coherence result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1CoherenceResult

Returns a new instance of GoogleCloudAiplatformV1beta1CoherenceResult.



12439
12440
12441
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12439

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

Instance Attribute Details

#confidenceFloat

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

Returns:

  • (Float)


12427
12428
12429
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12427

def confidence
  @confidence
end

#explanationString

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

Returns:

  • (String)


12432
12433
12434
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12432

def explanation
  @explanation
end

#scoreFloat

Output only. Coherence score. Corresponds to the JSON property score

Returns:

  • (Float)


12437
12438
12439
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12437

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12444
12445
12446
12447
12448
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12444

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