Class: Google::Apis::AiplatformV1::LearningGenaiRootTokensAndLogProbPerDecodingStep
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::LearningGenaiRootTokensAndLogProbPerDecodingStep
- 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
Results of RandomSamplingParams::top_k_logprob_per_decoding_step.
Instance Attribute Summary collapse
-
#chosen_candidates ⇒ Array<Google::Apis::AiplatformV1::LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate>
Length = total number of decoding steps.
-
#top_candidates ⇒ Array<Google::Apis::AiplatformV1::LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates>
Length = total number of decoding steps.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LearningGenaiRootTokensAndLogProbPerDecodingStep
constructor
A new instance of LearningGenaiRootTokensAndLogProbPerDecodingStep.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LearningGenaiRootTokensAndLogProbPerDecodingStep
Returns a new instance of LearningGenaiRootTokensAndLogProbPerDecodingStep.
30145 30146 30147 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30145 def initialize(**args) update!(**args) end |
Instance Attribute Details
#chosen_candidates ⇒ Array<Google::Apis::AiplatformV1::LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate>
Length = total number of decoding steps. The chosen candidates may or may not
be in top_candidates.
Corresponds to the JSON property chosenCandidates
30138 30139 30140 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30138 def chosen_candidates @chosen_candidates end |
#top_candidates ⇒ Array<Google::Apis::AiplatformV1::LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates>
Length = total number of decoding steps.
Corresponds to the JSON property topCandidates
30143 30144 30145 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30143 def top_candidates @top_candidates end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
30150 30151 30152 30153 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30150 def update!(**args) @chosen_candidates = args[:chosen_candidates] if args.key?(:chosen_candidates) @top_candidates = args[:top_candidates] if args.key?(:top_candidates) end |