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.
586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 586 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.
586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 586 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 |