Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1LogprobsResultTopCandidates

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

Candidates with top log probabilities at each decoding step.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1LogprobsResultTopCandidates

Returns a new instance of GoogleCloudAiplatformV1LogprobsResultTopCandidates.



15427
15428
15429
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15427

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

Instance Attribute Details

#candidatesArray<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1LogprobsResultCandidate>

Sorted by log probability in descending order. Corresponds to the JSON property candidates



15425
15426
15427
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15425

def candidates
  @candidates
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15432
15433
15434
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15432

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