Class: Google::Apis::AiplatformV1beta1::LearningGenaiRootTokensAndLogProbPerDecodingStep

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

Results of RandomSamplingParams::top_k_logprob_per_decoding_step.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LearningGenaiRootTokensAndLogProbPerDecodingStep

Returns a new instance of LearningGenaiRootTokensAndLogProbPerDecodingStep.



37052
37053
37054
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 37052

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

Instance Attribute Details

#chosen_candidatesArray<Google::Apis::AiplatformV1beta1::LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate>

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



37045
37046
37047
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 37045

def chosen_candidates
  @chosen_candidates
end

#top_candidatesArray<Google::Apis::AiplatformV1beta1::LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates>

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



37050
37051
37052
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 37050

def top_candidates
  @top_candidates
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



37057
37058
37059
37060
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 37057

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