View Source GoogleApi.AIPlatform.V1.Model.LearningGenaiRootTokensAndLogProbPerDecodingStep (google_api_ai_platform v0.2.0)

Results of RandomSamplingParams::top_k_logprob_per_decoding_step.

Attributes

  • chosenCandidates (type: list(GoogleApi.AIPlatform.V1.Model.LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate.t), default: nil) - Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.
  • topCandidates (type: list(GoogleApi.AIPlatform.V1.Model.LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates.t), default: nil) - Length = total number of decoding steps.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.AIPlatform.V1.Model.LearningGenaiRootTokensAndLogProbPerDecodingStep{
    chosenCandidates:
      [
        GoogleApi.AIPlatform.V1.Model.LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate.t()
      ]
      | nil,
    topCandidates:
      [
        GoogleApi.AIPlatform.V1.Model.LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates.t()
      ]
      | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.