Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::LogprobsResult.
Logprobs Result
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#chosen_candidates
def chosen_candidates() -> ::Array<::Google::Cloud::AIPlatform::V1::LogprobsResult::Candidate>
Returns
- (::Array<::Google::Cloud::AIPlatform::V1::LogprobsResult::Candidate>) — Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.
#chosen_candidates=
def chosen_candidates=(value) -> ::Array<::Google::Cloud::AIPlatform::V1::LogprobsResult::Candidate>
Parameter
- value (::Array<::Google::Cloud::AIPlatform::V1::LogprobsResult::Candidate>) — Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.
Returns
- (::Array<::Google::Cloud::AIPlatform::V1::LogprobsResult::Candidate>) — Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.
#top_candidates
def top_candidates() -> ::Array<::Google::Cloud::AIPlatform::V1::LogprobsResult::TopCandidates>
Returns
- (::Array<::Google::Cloud::AIPlatform::V1::LogprobsResult::TopCandidates>) — Length = total number of decoding steps.
#top_candidates=
def top_candidates=(value) -> ::Array<::Google::Cloud::AIPlatform::V1::LogprobsResult::TopCandidates>
Parameter
- value (::Array<::Google::Cloud::AIPlatform::V1::LogprobsResult::TopCandidates>) — Length = total number of decoding steps.
Returns
- (::Array<::Google::Cloud::AIPlatform::V1::LogprobsResult::TopCandidates>) — Length = total number of decoding steps.