Class: Google::Cloud::AIPlatform::V1::LogprobsResult
- Inherits:
-
Object
- Object
- Google::Cloud::AIPlatform::V1::LogprobsResult
- 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
-
#chosen_candidates ⇒ ::Array<::Google::Cloud::AIPlatform::V1::LogprobsResult::Candidate>
Length = total number of decoding steps.
-
#top_candidates ⇒ ::Array<::Google::Cloud::AIPlatform::V1::LogprobsResult::TopCandidates>
Length = total number of decoding steps.
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.
687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 687 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.
687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 687 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 |