Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1LogprobsResult

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

Logprobs Result

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1LogprobsResult

Returns a new instance of GoogleCloudAiplatformV1LogprobsResult.



13803
13804
13805
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 13803

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

Instance Attribute Details

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

Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates. Corresponds to the JSON property chosenCandidates



13796
13797
13798
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 13796

def chosen_candidates
  @chosen_candidates
end

#top_candidatesArray<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1LogprobsResultTopCandidates>

Length = total number of decoding steps. Corresponds to the JSON property topCandidates



13801
13802
13803
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 13801

def top_candidates
  @top_candidates
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13808
13809
13810
13811
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 13808

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