Class: Google::Cloud::AIPlatform::V1::LogprobsResult

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/aiplatform/v1/content.rb

Overview

Logprobs Result

Defined Under Namespace

Classes: Candidate, TopCandidates

Instance Attribute Summary collapse

Instance Attribute Details

#chosen_candidates::Array<::Google::Cloud::AIPlatform::V1::LogprobsResult::Candidate>

Returns Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.

Returns:



482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 482

class LogprobsResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Candidate for the logprobs token and score.
  # @!attribute [rw] token
  #   @return [::String]
  #     The candidate’s token string value.
  # @!attribute [rw] token_id
  #   @return [::Integer]
  #     The candidate’s token id value.
  # @!attribute [rw] log_probability
  #   @return [::Float]
  #     The candidate's log probability.
  class Candidate
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Candidates with top log probabilities at each decoding step.
  # @!attribute [rw] candidates
  #   @return [::Array<::Google::Cloud::AIPlatform::V1::LogprobsResult::Candidate>]
  #     Sorted by log probability in descending order.
  class TopCandidates
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#top_candidates::Array<::Google::Cloud::AIPlatform::V1::LogprobsResult::TopCandidates>

Returns Length = total number of decoding steps.

Returns:



482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 482

class LogprobsResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Candidate for the logprobs token and score.
  # @!attribute [rw] token
  #   @return [::String]
  #     The candidate’s token string value.
  # @!attribute [rw] token_id
  #   @return [::Integer]
  #     The candidate’s token id value.
  # @!attribute [rw] log_probability
  #   @return [::Float]
  #     The candidate's log probability.
  class Candidate
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Candidates with top log probabilities at each decoding step.
  # @!attribute [rw] candidates
  #   @return [::Array<::Google::Cloud::AIPlatform::V1::LogprobsResult::Candidate>]
  #     Sorted by log probability in descending order.
  class TopCandidates
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end