Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates

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

Candidates with top log probabilities at each decoding step.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates

Returns a new instance of GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates.



16814
16815
16816
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 16814

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

Instance Attribute Details

#candidatesArray<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LogprobsResultCandidate>

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



16812
16813
16814
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 16812

def candidates
  @candidates
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16819
16820
16821
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 16819

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