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.
458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 458 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.
458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 458 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 |